Edit

Share via


MethodToken Struct

Definition

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

public value class MethodToken
[System.Serializable]
public struct MethodToken
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct MethodToken
[<System.Serializable>]
type MethodToken = struct
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type MethodToken = struct
Public Structure MethodToken
Inheritance
MethodToken
Attributes

Fields

Name Description
Empty

The default MethodToken with Token value 0.

Properties

Name Description
Token

Returns the metadata token for this method.

Methods

Name Description
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

Name Description
Equality(MethodToken, MethodToken)

Indicates whether two MethodToken structures are equal.

Inequality(MethodToken, MethodToken)

Indicates whether two MethodToken structures are not equal.

Applies to