Hi..
I want to know about the global constructor in c# ?
Thanks...
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.
Javeed M ShaikhPosted Oct 19, 2011, 3:46 PM
VulpesPosted Oct 19, 2011, 3:44 PM
We do have a 'global' keyword but that's just to make it clear that some entity belongs to the global namespace.
Javeed M ShaikhPosted Oct 19, 2011, 3:32 PM
any idea what MSDN is referring too in this?
http://msdn.microsoft.com/en-us/library/ee255106(v=bts.10).aspx
shane mametPosted Oct 19, 2011, 3:24 PM
i.e. a project based variable that can be set / initialized from the outset of the application and then later reffered to where ever needed? (being a staticly set variable)
Simular to what Vulpes was saying - but more on a "project" spectrum versus a Class.
VulpesPosted Oct 19, 2011, 12:56 PM
Do you perhaps mean a static constructor which is used to initialize data for a class as a whole (i.e. its static fields) rather than a particular instance of it?