Answer Posted / shadab alam
static costructor of a class invoked automatically when
class is loded provided Main method is given.There is no
need to create instance of a class.
we can prove it by following program in c#
using System;
class aa
{
static aa()
{
Console.Write("without instance");
}
public static void Main()
{
}
}
output will be
---------------
without instance
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What is a private class in c#?
Explain the difference between the system.array.copyto() and system.array.clone()?
Can an int be negative c#?
What is ienumerable t in c#?
What is uint c#?
How can I get the ascii code for a character in c#?
What are the variables in c#?
Can hashtable have duplicate keys?
What is a collection in c#?
Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).
Is lazy thread safe c#?
Assembly Code. in Rejester AL. How do Contast Replece( or Change): Bit D3 With Bit D4 and Bit D2 With Bit D5 and Bit D1 With Bit D6 and Bit D0 With Bit D7 I am Not Know Very Well Write English.
What is the difference between ref and out in c#?
Can you create partial delegates and enumerations?
What's new in c#?