ZK_Framework/HybridCLRData/LocalIl2CppData-WindowsEditor/il2cpp/Il2CppEagerStaticClassConst...

14 lines
620 B
C#
Raw Normal View History

2024-07-04 20:18:43 +08:00
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
{
}
}