Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the use of the static constructor? When static
constructor gets compiled?

Answer Posted / jitendra

Static constructor is used to initzialise the static data
members when the class has been instantiated first time.
Static data members can certainly be initialized at the
time of their declaration but there are times when value of
one static member may depend upon the value of another
static member. In such cases we definitely need some
mechanism to handle conditional initialization of static
members. To handle such situation, C# provides static
constructor.

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is delegate in c# interview questions?

1066


If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?

1028


Does google use c#?

972


How do you escape a character?

992


What are the Features in .net framework 1.1

1046


What is console application with example?

996


What is the difference between inheritance and abstract class?

944


What is the namespcae generally given to the webpage of the .NET Framework ?

1121


What's the difference between the debug class and trace class? Documentation looks the same.

1171


what is IComparable

1044


Is python easier than c#?

1015


Explain About .Net remoting

1051


Is datetime nullable c#?

1081


What is code verification?

1038


When a switch is said to be congested?

1069