where are these used
Where are static constructors used?
Hi,
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.
VulpesPosted May 11, 2013, 1:10 PM
However, here's an example of use:
Suma MPosted May 11, 2013, 9:38 PM
Ashish ShuklaPosted May 11, 2013, 1:48 PM
we can initialize in a static constructor.
The above is only an example just to demonstrate one use of static constructors.A good example of a static constructor is a singleton class.
Suma MPosted May 11, 2013, 10:08 AM
Ashish ShuklaPosted May 10, 2013, 12:39 PM
Common example is to initialize the application data that is used across the different pages.