using System; using System.Runtime.InteropServices; namespace System.Reflection.Emit { /// Represents the Token returned by the metadata to represent a signature. // Token: 0x02000218 RID: 536 [ComVisible(true)] public struct SignatureToken { // Token: 0x06001C48 RID: 7240 RVA: 0x0006A948 File Offset: 0x00068B48 internal SignatureToken(int val) { this.tokValue = val; } /// Checks if the given object is an instance of SignatureToken and is equal to this instance. /// true if is an instance of SignatureToken and is equal to this object; otherwise, false. /// The object to compare with this SignatureToken. // Token: 0x06001C4A RID: 7242 RVA: 0x0006A970 File Offset: 0x00068B70 public override bool Equals(object obj) { bool flag = obj is SignatureToken; if (flag) { SignatureToken signatureToken = (SignatureToken)obj; flag = this.tokValue == signatureToken.tokValue; } return flag; } /// Indicates whether the current instance is equal to the specified . /// true if the value of is equal to the value of the current instance; otherwise, false. /// The to compare to the current instance. // Token: 0x06001C4B RID: 7243 RVA: 0x0006A9A8 File Offset: 0x00068BA8 public bool Equals(SignatureToken obj) { return this.tokValue == obj.tokValue; } /// Generates the hash code for this signature. /// Returns the hash code for this signature. // Token: 0x06001C4C RID: 7244 RVA: 0x0006A9BC File Offset: 0x00068BBC public override int GetHashCode() { return this.tokValue; } /// Retrieves the metadata token for the local variable signature for this method. /// Read-only. Retrieves the metadata token of this signature. // Token: 0x17000513 RID: 1299 // (get) Token: 0x06001C4D RID: 7245 RVA: 0x0006A9C4 File Offset: 0x00068BC4 public int Token { get { return this.tokValue; } } /// Indicates whether two structures are equal. /// true if is equal to ; otherwise, false. /// The to compare to . /// The to compare to . // Token: 0x06001C4E RID: 7246 RVA: 0x0006A9CC File Offset: 0x00068BCC public static bool operator ==(SignatureToken a, SignatureToken b) { return object.Equals(a, b); } /// Indicates whether two structures are not equal. /// true if is not equal to ; otherwise, false. /// The to compare to . /// The to compare to . // Token: 0x06001C4F RID: 7247 RVA: 0x0006A9E0 File Offset: 0x00068BE0 public static bool operator !=(SignatureToken a, SignatureToken b) { return !object.Equals(a, b); } // Token: 0x0400098B RID: 2443 internal int tokValue; /// The default SignatureToken with value 0. // Token: 0x0400098C RID: 2444 public static readonly SignatureToken Empty = default(SignatureToken); } }