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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Oct 19, 2011, 8:56 AM EDT
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?
shane mamet4 reputationPosted Oct 19, 2011, 11:24 AM EDT
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.
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 19, 2011, 11:32 AM EDT
any idea what MSDN is referring too in this?
http://msdn.microsoft.com/en-us/library/ee255106(v=bts.10).aspx
VulpesRank #55 · 29.2K reputationPosted Oct 19, 2011, 11:44 AM EDT
We do have a 'global' keyword but that's just to make it clear that some entity belongs to the global namespace.
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 19, 2011, 11:46 AM EDT