System.Reflection.CallingConventions Enumeration

Assembly: Mscorlib.dll
Namespace: System.Reflection
Summary
Defines the valid calling conventions for an enumeration.
C# Syntax:
[Flags]
[Serializable]
public enum CallingConventions
Remarks
The native calling convention is the set of rules governing the order and layout of arguments passed to compiled methods. It also governs how to pass the return value, what registers to use for arguments, and whether the called or the calling method removes arguments from the stack.
See also:
System.Reflection Namespace

System.Reflection.CallingConventions Member List:

Public Fields
Any Specifies that either the Standard or the VarArgs calling convention may be used.
ExplicitThis Specifies that the signature is a function-pointer signature, representing a call to an instance or virtual method (not a static method). If ExplicitThis is set, HasThis must also be set. The first argument passed to the called method is still a this pointer, but the type of the first argument is now unknown. Therefore, a token that describes the type (or class) of the this pointer is explicitly stored into its metadata signature.
HasThis 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 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.
Standard Specifies the default calling convention as determined by the common language runtime.
VarArgs Specifies the calling convention for methods with variable arguments.

Hierarchy:


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.