Is RunClassConstructor guaranteed to run a type's static constructor only once?
        Posted  
        
            by mafutrct
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mafutrct
        
        
        
        Published on 2010-04-17T13:49:41Z
        Indexed on 
            2010/04/17
            13:53 UTC
        
        
        Read the original article
        Hit count: 239
        
I'm calling the static ctor of a class using this code:
Type type;
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(type.TypeHandle);
Can this cause the cctor to be run twice?
© Stack Overflow or respective owner