Table of Contents

Struct MetadataToken

Namespace
Microsoft.Samples.Debugging.CorMetadata
Assembly
corapi.dll
public struct MetadataToken

Constructors

MetadataToken(MetadataTokenType, int)
MetadataToken(int)

Properties

Index

Get the index (RID, bottom 6 nibbles) of the token.

Type

Get the type of the token (top 2 nibbles), such as mdTypeDef, etc.

Value

Get the raw value of the token

Methods

Equals(object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

IsOfType(params MetadataTokenType[])
IsTokenOfType(int, params MetadataTokenType[])
ToString()

Returns the fully qualified type name of this instance.

Operators

operator ==(MetadataToken, MetadataToken)
implicit operator int(MetadataToken)
operator !=(MetadataToken, MetadataToken)