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?



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

Answer / 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

More C Sharp Interview Questions

What is the extension of c# file?

0 Answers  


What is a resource? Provide an example from your recent project.

2 Answers   IBM, Logica CMG, Wipro,


What is serialization in unity?

0 Answers  


what is satelite assembly?

5 Answers   ABC,


What is difference between the "throw" and "throw ex" in .net?

0 Answers  


What is multicast delegate in c# ?

0 Answers  


write a C# Program add two matrix ?

0 Answers   Wipro,


Is array value type in c#?

0 Answers  


how can i display crystalreport in button click? am working with VS2005

1 Answers  


What is callback delegate in c#?

0 Answers  


Explain the serialization in .net

0 Answers  


What?s the .NET datatype that allows the retrieval of data by a unique key?

2 Answers   SmartData,


Categories