77 lines
3.6 KiB
C#
77 lines
3.6 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Diagnostics.SymbolStore
|
|
{
|
|
/// <summary>The <see cref="T:System.Diagnostics.SymbolStore.SymbolToken" /> structure is an object representation of a token that represents symbolic information.</summary>
|
|
// Token: 0x02000159 RID: 345
|
|
[ComVisible(true)]
|
|
public struct SymbolToken
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.SymbolStore.SymbolToken" /> structure when given a value.</summary>
|
|
/// <param name="val">The value to be used for the token. </param>
|
|
// Token: 0x06001121 RID: 4385 RVA: 0x00044EE8 File Offset: 0x000430E8
|
|
public SymbolToken(int val)
|
|
{
|
|
this._val = val;
|
|
}
|
|
|
|
/// <summary>Determines whether <paramref name="obj" /> is an instance of <see cref="T:System.Diagnostics.SymbolStore.SymbolToken" /> and is equal to this instance.</summary>
|
|
/// <returns>true if <paramref name="obj" /> is an instance of <see cref="T:System.Diagnostics.SymbolStore.SymbolToken" /> and is equal to this instance; otherwise, false.</returns>
|
|
/// <param name="obj">The object to check. </param>
|
|
// Token: 0x06001122 RID: 4386 RVA: 0x00044EF4 File Offset: 0x000430F4
|
|
public override bool Equals(object obj)
|
|
{
|
|
return obj is SymbolToken && ((SymbolToken)obj).GetToken() == this._val;
|
|
}
|
|
|
|
/// <summary>Determines whether <paramref name="obj" /> is equal to this instance.</summary>
|
|
/// <returns>true if <paramref name="obj" /> is equal to this instance; otherwise, false.</returns>
|
|
/// <param name="obj">The <see cref="T:System.Diagnostics.SymbolStore.SymbolToken" /> to check.</param>
|
|
// Token: 0x06001123 RID: 4387 RVA: 0x00044F24 File Offset: 0x00043124
|
|
public bool Equals(SymbolToken obj)
|
|
{
|
|
return obj.GetToken() == this._val;
|
|
}
|
|
|
|
/// <summary>Generates the hash code for the current token.</summary>
|
|
/// <returns>The hash code for the current token.</returns>
|
|
// Token: 0x06001124 RID: 4388 RVA: 0x00044F38 File Offset: 0x00043138
|
|
public override int GetHashCode()
|
|
{
|
|
return this._val.GetHashCode();
|
|
}
|
|
|
|
/// <summary>Gets the value of the current token.</summary>
|
|
/// <returns>The value of the current token.</returns>
|
|
// Token: 0x06001125 RID: 4389 RVA: 0x00044F48 File Offset: 0x00043148
|
|
public int GetToken()
|
|
{
|
|
return this._val;
|
|
}
|
|
|
|
/// <summary>Returns a value indicating whether two <see cref="T:System.Diagnostics.SymbolStore.SymbolToken" /> objects are equal.</summary>
|
|
/// <returns>true if <paramref name="a" /> and <paramref name="b" /> are equal; otherwise, false.</returns>
|
|
/// <param name="a">A <see cref="T:System.Diagnostics.SymbolStore.SymbolToken" /> structure.</param>
|
|
/// <param name="b">A <see cref="T:System.Diagnostics.SymbolStore.SymbolToken" /> structure.</param>
|
|
// Token: 0x06001126 RID: 4390 RVA: 0x00044F50 File Offset: 0x00043150
|
|
public static bool operator ==(SymbolToken a, SymbolToken b)
|
|
{
|
|
return a.Equals(b);
|
|
}
|
|
|
|
/// <summary>Returns a value indicating whether two <see cref="T:System.Diagnostics.SymbolStore.SymbolToken" /> objects are not equal.</summary>
|
|
/// <returns>true if <paramref name="a" /> and <paramref name="b" /> are not equal; otherwise, false.</returns>
|
|
/// <param name="a">A <see cref="T:System.Diagnostics.SymbolStore.SymbolToken" /> structure.</param>
|
|
/// <param name="b">A <see cref="T:System.Diagnostics.SymbolStore.SymbolToken" /> structure.</param>
|
|
// 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;
|
|
}
|
|
}
|