using System;
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
/// The structure is an object representation of a token that represents symbolic information.
// Token: 0x02000159 RID: 345
[ComVisible(true)]
public struct SymbolToken
{
/// Initializes a new instance of the structure when given a value.
/// The value to be used for the token.
// Token: 0x06001121 RID: 4385 RVA: 0x00044EE8 File Offset: 0x000430E8
public SymbolToken(int val)
{
this._val = val;
}
/// Determines whether is an instance of and is equal to this instance.
/// true if is an instance of and is equal to this instance; otherwise, false.
/// The object to check.
// Token: 0x06001122 RID: 4386 RVA: 0x00044EF4 File Offset: 0x000430F4
public override bool Equals(object obj)
{
return obj is SymbolToken && ((SymbolToken)obj).GetToken() == this._val;
}
/// Determines whether is equal to this instance.
/// true if is equal to this instance; otherwise, false.
/// The to check.
// Token: 0x06001123 RID: 4387 RVA: 0x00044F24 File Offset: 0x00043124
public bool Equals(SymbolToken obj)
{
return obj.GetToken() == this._val;
}
/// Generates the hash code for the current token.
/// The hash code for the current token.
// Token: 0x06001124 RID: 4388 RVA: 0x00044F38 File Offset: 0x00043138
public override int GetHashCode()
{
return this._val.GetHashCode();
}
/// Gets the value of the current token.
/// The value of the current token.
// Token: 0x06001125 RID: 4389 RVA: 0x00044F48 File Offset: 0x00043148
public int GetToken()
{
return this._val;
}
/// Returns a value indicating whether two objects are equal.
/// true if and are equal; otherwise, false.
/// A structure.
/// A structure.
// Token: 0x06001126 RID: 4390 RVA: 0x00044F50 File Offset: 0x00043150
public static bool operator ==(SymbolToken a, SymbolToken b)
{
return a.Equals(b);
}
/// Returns a value indicating whether two objects are not equal.
/// true if and are not equal; otherwise, false.
/// A structure.
/// A structure.
// Token: 0x06001127 RID: 4391 RVA: 0x00044F5C File Offset: 0x0004315C
public static bool operator !=(SymbolToken a, SymbolToken b)
{
return !a.Equals(b);
}
// Token: 0x04000437 RID: 1079
private int _val;
}
}