Prev: File locking
Next: microsoft windows installer
From: Ashok kumar on 27 May 2010 08:55 dear friends Can you tell me in which scenario we have to use static class and static constructor? Thanks in advance
From: Peter Duniho on 27 May 2010 11:17 Ashok kumar wrote: > dear friends > Can you tell me in which scenario we have to use static class and > static constructor? Use a static class when you want to implement functionality that does not require per-instance state (i.e. all consumers of the class can share the state). Use a static constructor when you need to initialize state in a class that is shared by all consumers of the class. Pete
|
Pages: 1 Prev: File locking Next: microsoft windows installer |