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 type cast in C#?

0 Answers   TryTechnicals Pvt Ltd,


How do you generate documentation from the C# file commented properly with a command-line compiler?

1 Answers  


Illustrate the differences between the system.array.copyto() and system.array.clone()?

0 Answers  


Define delegate in c#?

0 Answers  


What is dao in c#?

0 Answers  


What is the difference between yield and return?

0 Answers  


Which are access modifiers available in c#?

0 Answers  


What is monitor in C#?

0 Answers   TryTechnicals Pvt Ltd,


What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to

0 Answers  


What is c# and why it is used for?

0 Answers  


can you declare an override method to be static if the original method is not static?

0 Answers   Siebel Systems,


How is the syntax written to inherit from a class in C#?Give an example ?

0 Answers   Siebel,


Categories