The class initialization is guaranteed by the specification of the C# language to be thread safe, so only one instance of MyClass
will be created. You would have to ensure thread safety from that point onwards yourself. Here's an MSDN reference:
http://msdn.microsoft.com/en-us/library/aa645612.aspx