using System;
using System.Runtime.InteropServices;
namespace System.Reflection.Emit
{
/// Represents the Token returned by the metadata to represent an event.
// Token: 0x020001F2 RID: 498
[ComVisible(true)]
[Serializable]
public struct EventToken
{
// Token: 0x06001A0E RID: 6670 RVA: 0x00062870 File Offset: 0x00060A70
internal EventToken(int val)
{
this.tokValue = val;
}
/// Checks if the given object is an instance of EventToken and is equal to this instance.
/// Returns true if is an instance of EventToken and equals the current instance; otherwise, false.
/// The object to be compared with this instance.
// Token: 0x06001A10 RID: 6672 RVA: 0x00062898 File Offset: 0x00060A98
public override bool Equals(object obj)
{
bool flag = obj is EventToken;
if (flag)
{
EventToken eventToken = (EventToken)obj;
flag = this.tokValue == eventToken.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: 0x06001A11 RID: 6673 RVA: 0x000628D0 File Offset: 0x00060AD0
public bool Equals(EventToken obj)
{
return this.tokValue == obj.tokValue;
}
/// Generates the hash code for this event.
/// Returns the hash code for this instance.
// Token: 0x06001A12 RID: 6674 RVA: 0x000628E4 File Offset: 0x00060AE4
public override int GetHashCode()
{
return this.tokValue;
}
/// Retrieves the metadata token for this event.
/// Read-only. Retrieves the metadata token for this event.
// Token: 0x17000499 RID: 1177
// (get) Token: 0x06001A13 RID: 6675 RVA: 0x000628EC File Offset: 0x00060AEC
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: 0x06001A14 RID: 6676 RVA: 0x000628F4 File Offset: 0x00060AF4
public static bool operator ==(EventToken a, EventToken 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: 0x06001A15 RID: 6677 RVA: 0x00062908 File Offset: 0x00060B08
public static bool operator !=(EventToken a, EventToken b)
{
return !object.Equals(a, b);
}
// Token: 0x040007B0 RID: 1968
internal int tokValue;
/// The default EventToken with value 0.
// Token: 0x040007B1 RID: 1969
public static readonly EventToken Empty = default(EventToken);
}
}