37 lines
2.1 KiB
C#
37 lines
2.1 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Reflection
|
|
{
|
|
/// <summary>Defines the valid calling conventions for a method.</summary>
|
|
// Token: 0x02000217 RID: 535
|
|
[Token(Token = "0x2000217")]
|
|
[Flags]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public enum CallingConventions
|
|
{
|
|
/// <summary>Specifies the default calling convention as determined by the common language runtime. Use this calling convention for static methods. For instance or virtual methods use <see langword="HasThis" />.</summary>
|
|
// Token: 0x04000A3C RID: 2620
|
|
[Token(Token = "0x4000A3C")]
|
|
Standard = 1,
|
|
/// <summary>Specifies the calling convention for methods with variable arguments.</summary>
|
|
// Token: 0x04000A3D RID: 2621
|
|
[Token(Token = "0x4000A3D")]
|
|
VarArgs = 2,
|
|
/// <summary>Specifies that either the <see langword="Standard" /> or the <see langword="VarArgs" /> calling convention may be used.</summary>
|
|
// Token: 0x04000A3E RID: 2622
|
|
[Token(Token = "0x4000A3E")]
|
|
Any = 3,
|
|
/// <summary>Specifies an instance or virtual method (not a static method). At run-time, the called method is passed a pointer to the target object as its first argument (the <see langword="this" /> pointer). The signature stored in metadata does not include the type of this first argument, because the method is known and its owner class can be discovered from metadata.</summary>
|
|
// Token: 0x04000A3F RID: 2623
|
|
[Token(Token = "0x4000A3F")]
|
|
HasThis = 32,
|
|
/// <summary>Specifies that the signature is a function-pointer signature, representing a call to an instance or virtual method (not a static method). If <see langword="ExplicitThis" /> is set, <see langword="HasThis" /> must also be set. The first argument passed to the called method is still a <see langword="this" /> pointer, but the type of the first argument is now unknown. Therefore, a token that describes the type (or class) of the <see langword="this" /> pointer is explicitly stored into its metadata signature.</summary>
|
|
// Token: 0x04000A40 RID: 2624
|
|
[Token(Token = "0x4000A40")]
|
|
ExplicitThis = 64
|
|
}
|
|
}
|