-
- // If we have static constructors, the runtime needs to
- // initialize the class, otherwise we can optimize
- // the case.
- if (caller.HaveStaticConstructor)
+
+ return t;
+ }
+
+ public static TypeAttributes TypeAttr (int mod_flags, TypeContainer caller)
+ {
+ TypeAttributes t = TypeAttr (mod_flags, caller.IsTopLevel);
+
+ // If we do not have static constructors, static methods
+ // can be invoked without initializing the type.
+ if (!caller.HaveStaticConstructor)