Hi,
I want to know that what the global constructor and in which scenario we used it ?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Feb 8, 2012, 5:54 PM
Deepak DwijPosted Feb 8, 2012, 6:45 AM
VulpesPosted Feb 7, 2012, 11:30 AM
It's possible for a class or struct to contain instance constructor(s) and/or a static constructor.
A static constructor initializes static data for the class or struct as a whole, is called at most once by the system and is guaranteed to run before any instance of that class or struct is created.