The static constructor is not called because in your Main method you don't reference any static member of the
Employ
class (see
Static Constructors[
^]:
A static constructor is called automatically to initialize the class before the first instance is created or any static members are referenced.
change
Quote:
static string Pass;
to
public static string Pass;
and add the following line to your
Main
method
Console.WriteLine(Employ.Pass);
To see the static constructor called.