A static constructor should be implemented whenever you have any static
properties
defined in the class, to initialize those properties.
It is cleaner to do the initialization in the static constructor than
to directly initialize where declared if you ask me.
The static constructor runs when you create an instance of the class where
it is declared
or use any static methods declared in the class.
It runs only if there is not any other instance of the assembly currently
running,
because then it has already run.
"Bob Rock" <no***************************@hotmail.com> wrote in message
news:O5**************@tk2msftngp13.phx.gbl...
Hello,
I was wondering when should static constructors be defined or are they
even required??? Also, when are they implicitly called???
Bob Rock