PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Metadata­Token Structure

MetadataToken Structure

Encapsulates a metadata token, which unambiguously identifies a MetadataDeclaration inside a ModuleDeclaration.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public struct MetadataToken : IComparable<MetadataToken>, 
	IEquatable<MetadataToken>

The MetadataToken type exposes the following members.

Properties
  NameDescription
Public propertyIsNull
Determines whether the current token is null.
Methods
  NameDescription
Public methodCompareTo
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object).)
Public methodEquals(MetadataToken)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ValueType.ToString().)
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two metadata tokens are equal.
Public operatorStatic memberGreaterThan
Public operatorStatic memberGreaterThanOrEqual
Public operatorStatic memberInequality
Determines whether two metadata tokens are different.
Public operatorStatic memberLessThan
Public operatorStatic memberLessThanOrEqual
Fields
  NameDescription
Public fieldStatic memberNull
Null MetadataToken.
See Also