The static constructor is not executed because you are not using any static members of the structure.
If you use the static member currInterestRate , then the static constructor is called first:
Console.WriteLine(SavingsAccount.currInterestRate);
Output:
static ctor of SavingsAccount 0,06
When you use a class, the static constructor will be called before the instance is created. A constructor call for a structure does not instantiate, so it does not call a static constructor.
Guffa source share