14 lines
620 B
C#
14 lines
620 B
C#
using System;
|
|
|
|
namespace Unity.IL2CPP.CompilerServices
|
|
{
|
|
// Modelled after: https://github.com/dotnet/corert/blob/master/src/Runtime.Base/src/System/Runtime/CompilerServices/EagerStaticClassConstructionAttribute.cs
|
|
//
|
|
// When applied to a type this custom attribute will cause any static class constructor to be run eagerly
|
|
// at module load time rather than deferred till just before the class is used.
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)]
|
|
public class Il2CppEagerStaticClassConstructionAttribute : Attribute
|
|
{
|
|
}
|
|
}
|