Rediger

Del via


SignatureTypeCode Enum

Definition

Specifies constants that define type codes used in signature encoding.

public enum class SignatureTypeCode
public enum SignatureTypeCode
type SignatureTypeCode = 
Public Enum SignatureTypeCode
Inheritance
SignatureTypeCode

Fields

Name Value Description
Invalid 0

Represents an invalid or uninitialized type code. It will not appear in valid signatures.

Void 1

Represents Void in signatures.

Boolean 2

Represents a Boolean in signatures.

Char 3

Represents a Char in signatures.

SByte 4

Represents an SByte in signatures.

Byte 5

Represents a Byte in signatures.

Int16 6

Represents an Int16 in signatures.

UInt16 7

Represents a UInt16 in signatures.

Int32 8

Represents an Int32 in signatures.

UInt32 9

Represents a UInt32 in signatures.

Int64 10

Represents an Int64 in signatures.

UInt64 11

Represents a UInt64 in signatures.

Single 12

Represents a Single in signatures.

Double 13

Represents a Double in signatures.

String 14

Represents a String in signatures.

Pointer 15

Represents an unmanaged pointer in signatures. It is followed in the blob by the signature encoding of the underlying type.

ByReference 16

Represents managed pointers (byref return values and parameters) in signatures. It is followed in the blob by the signature encoding of the underlying type.

GenericTypeParameter 19

Represents a generic type parameter used within a signature.

Array 20

Represents a generalized Array in signatures.

GenericTypeInstance 21

Represents the instantiation of a generic type in signatures.

TypedReference 22

Represents a typed reference in signatures.

IntPtr 24

Represents an IntPtr in signatures.

UIntPtr 25

Represents a UIntPtr in signatures.

FunctionPointer 27

Represents function pointer types in signatures.

Object 28

Represents an Object in signatures.

SZArray 29

Represents a single dimensional Array with a lower bound of 0.

GenericMethodParameter 30

Represents a generic method parameter used within a signature.

RequiredModifier 31

Represents a custom modifier applied to a type within a signature that the caller must understand.

OptionalModifier 32

Represents a custom modifier applied to a type within a signature that the caller can ignore.

TypeHandle 64

Precedes a type EntityHandle in signatures. In raw metadata, this is encoded as either ELEMENT_TYPE_CLASS (0x12) for reference types or ELEMENT_TYPE_VALUETYPE (0x11) for value types. This is collapsed to a single code because Windows Runtime projections can project from class to value type or vice-versa, and the raw code is misleading in those cases.

Sentinel 65

Represents a marker to indicate the end of fixed arguments and the beginning of variable arguments.

Pinned 69

Represents a local variable that is pinned by garbage collector.

Applies to