SignatureCallingConvention Enum

Definition

Specifies how arguments in a given signature are passed from the caller to the callee. The underlying values of the fields in this type correspond to the representation in the leading signature byte represented by a SignatureHeader structure.

C#
public enum SignatureCallingConvention
Inheritance
SignatureCallingConvention

Fields

Name Value Description
Default 0

A managed calling convention with a fixed-length argument list.

CDecl 1

An unmanaged C/C++ style calling convention where the call stack is cleaned by the caller.

StdCall 2

An unmanaged calling convention where the call stack is cleaned up by the callee.

ThisCall 3

An unmanaged C++ style calling convention for calling instance member functions with a fixed argument list.

FastCall 4

An unmanaged calling convention where arguments are passed in registers when possible.

VarArgs 5

A managed calling convention for passing extra arguments.

Unmanaged 9

Indicates that the specifics of the unmanaged calling convention are encoded as modopts.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)
UWP 10.0