MethodToken Structure

MethodToken Structure

 

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

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

[SerializableAttribute]
[ComVisibleAttribute(true)]
public struct MethodToken

NameDescription
System_CAPS_pubpropertyToken

Returns the metadata token for this method.

NameDescription
System_CAPS_pubmethodEquals(MethodToken)

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

System_CAPS_pubmethodEquals(Object)

Tests whether the given object is equal to this MethodToken object.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Returns the generated hash code for this method.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the fully qualified type name of this instance.(Inherited from ValueType.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticEmpty

The default MethodToken with Token value 0.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(MethodToken, MethodToken)

Indicates whether two MethodToken structures are equal.

System_CAPS_puboperatorSystem_CAPS_staticInequality(MethodToken, MethodToken)

Indicates whether two MethodToken structures are not equal.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft