using System; using System.Runtime.InteropServices; namespace System.Reflection.Emit { /// The FieldToken struct is an object representation of a token that represents a field. // Token: 0x020001F5 RID: 501 [ComVisible(true)] [Serializable] public struct FieldToken { // Token: 0x06001A40 RID: 6720 RVA: 0x00062DAC File Offset: 0x00060FAC internal FieldToken(int val) { this.tokValue = val; } /// Determines if an object is an instance of FieldToken and is equal to this instance. /// Returns true if is an instance of FieldToken and is equal to this object; otherwise, false. /// The object to compare to this FieldToken. // Token: 0x06001A42 RID: 6722 RVA: 0x00062DD4 File Offset: 0x00060FD4 public override bool Equals(object obj) { bool flag = obj is FieldToken; if (flag) { FieldToken fieldToken = (FieldToken)obj; flag = this.tokValue == fieldToken.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: 0x06001A43 RID: 6723 RVA: 0x00062E0C File Offset: 0x0006100C public bool Equals(FieldToken obj) { return this.tokValue == obj.tokValue; } /// Generates the hash code for this field. /// Returns the hash code for this instance. // Token: 0x06001A44 RID: 6724 RVA: 0x00062E20 File Offset: 0x00061020 public override int GetHashCode() { return this.tokValue; } /// Retrieves the metadata token for this field. /// Read-only. Retrieves the metadata token of this field. // Token: 0x170004A9 RID: 1193 // (get) Token: 0x06001A45 RID: 6725 RVA: 0x00062E28 File Offset: 0x00061028 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: 0x06001A46 RID: 6726 RVA: 0x00062E30 File Offset: 0x00061030 public static bool operator ==(FieldToken a, FieldToken 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: 0x06001A47 RID: 6727 RVA: 0x00062E44 File Offset: 0x00061044 public static bool operator !=(FieldToken a, FieldToken b) { return !object.Equals(a, b); } // Token: 0x040007C1 RID: 1985 internal int tokValue; /// The default FieldToken with value 0. // Token: 0x040007C2 RID: 1986 public static readonly FieldToken Empty = default(FieldToken); } }