Table of Contents

Enum CallingConventionAttributes

Namespace
AsmResolver.DotNet.Signatures
Assembly
AsmResolver.DotNet.dll

Provides members for describing all available attributes that can be used in a calling convention signature.

[Flags]
public enum CallingConventionAttributes : byte

Fields

C = 1

Indicates a method is using the cdecl calling convention.

Default = 0

Indicates a method is using the default calling convention specified by the runtime.

ExplicitThis = 64

Indicates the current instance parameter is explicitly specified in the parameter list. That is, determines whether the first parameter is used for the current instance object.

FastCall = 4

Indicates a method is using the fastcall calling convention.

Field = StdCall | FastCall

Indicates the signature references a field signature.

Generic = 16

Indicates the member defines generic parameters.

GenericInstance = StdCall | Property

Indicates the signature references a generic method instantiation.

HasThis = 32

Indicates the member is an instance member and an additional argument is required to use this member.

Local = C | Field

Indicates the signature references a list of local variable signatures.

NativeVarArg = C | GenericInstance

Indicates the method supports supplying a variable amount of arguments. This really is exactly native varargs (no cookie) and should only appear in PInvoke IL stubs.

Property = 8

Indicates the signature references a property signature.

[Obsolete("This value should not be used. Use VarArg instead.")] Sentinel = C | ExplicitThis

Indicates the signature is part of a vararg method signature.

StdCall = 2

Indicates a method is using the stdcall calling convention.

ThisCall = C | StdCall

Indicates a method is using the thiscall calling convention.

Unmanaged = C | Property

Indicates the signature references an unmanaged function signature for which the calling convention is determined by the optional modifiers on the return type.

VarArg = C | FastCall

Indicates the method supports supplying a variable amount of arguments.