TypeToken Struct

Definition

Represents the Token returned by the metadata to represent a type.

[System.Serializable]
public struct TypeToken
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct TypeToken
Inheritance
TypeToken
Attributes

Remarks

The type of an object is also known as the class of an object.

Fields

Empty

The default TypeToken with Token value 0.

Properties

Token

Retrieves the metadata token for this class.

Methods

Equals(Object)

Checks if the given object is an instance of TypeToken and is equal to this instance.

Equals(TypeToken)

Indicates whether the current instance is equal to the specified TypeToken.

GetHashCode()

Generates the hash code for this type.

Operators

Equality(TypeToken, TypeToken)

Indicates whether two TypeToken structures are equal.

Inequality(TypeToken, TypeToken)

Indicates whether two TypeToken structures are not equal.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1