From: Ashok kumar on
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
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