[c#] The type initializer for 'MyClass' threw an exception