Tuesday, July 7, 2009

Static Constructor in C#

Constructor:
Object will be created when it is declared or dynamically constructed on the heap through new key word

Static Constructor:

1) Static constructor initialize only one at a time.
2) No parameter for the method.
3) Access modifier are not allowed for the static constrcutor.
4) Only static datamember will be used in the static member.