MethodToken Struct

Definition

The MethodToken struct is an object representation of a token that represents a method.

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

Fields

Empty

The default MethodToken with Token value 0.

Properties

Token

Returns the metadata token for this method.

Methods

Equals(MethodToken)

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

Equals(Object)

Tests whether the given object is equal to this MethodToken object.

GetHashCode()

Returns the generated hash code for this method.

Operators

Equality(MethodToken, MethodToken)

Indicates whether two MethodToken structures are equal.

Inequality(MethodToken, MethodToken)

Indicates whether two MethodToken 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