I'd just like to add to what's gone before that the static constructor
(which is what it's called) is run after the initialization of any static
variables that have explicit initializations.
Tom Dacon
Dacon Software Consulting
"Coder Coder" <co*******@yahoo.com> wrote in message
news:f5**************************@posting.google.c om...
Hello,
Is it possible in C# to have the following.
public class Foo
{
static
{
}
public Foo ()
{
}
}
Having a section of code which is static and is executed at the
startup of the program.
- Thanks