The static constructor is not called because in your Main method you don't reference any static member of the
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.
Quote:static string Pass;
public static string Pass;
and add the following line to your
To see the static constructor called.