Il2CppEagerStaticClassConstructionAttribute.cs 620 B

12345678910111213
  1. using System;
  2. namespace Unity.IL2CPP.CompilerServices
  3. {
  4. // Modelled after: https://github.com/dotnet/corert/blob/master/src/Runtime.Base/src/System/Runtime/CompilerServices/EagerStaticClassConstructionAttribute.cs
  5. //
  6. // When applied to a type this custom attribute will cause any static class constructor to be run eagerly
  7. // at module load time rather than deferred till just before the class is used.
  8. [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)]
  9. public class Il2CppEagerStaticClassConstructionAttribute : Attribute
  10. {
  11. }
  12. }