using System;
using System.Runtime.InteropServices;
namespace System.Reflection.Emit
{
/// Represents a label in the instruction stream. Label is used in conjunction with the class.
// Token: 0x02000201 RID: 513
[ComVisible(true)]
[Serializable]
public struct Label
{
// Token: 0x06001AE3 RID: 6883 RVA: 0x000655D0 File Offset: 0x000637D0
internal Label(int val)
{
this.label = val;
}
/// Checks if the given object is an instance of Label and is equal to this instance.
/// Returns true if is an instance of Label and is equal to this object; otherwise, false.
/// The object to compare with this Label instance.
// Token: 0x06001AE4 RID: 6884 RVA: 0x000655DC File Offset: 0x000637DC
public override bool Equals(object obj)
{
bool flag = obj is Label;
if (flag)
{
Label label = (Label)obj;
flag = this.label == label.label;
}
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: 0x06001AE5 RID: 6885 RVA: 0x00065614 File Offset: 0x00063814
public bool Equals(Label obj)
{
return this.label == obj.label;
}
/// Generates a hash code for this instance.
/// Returns a hash code for this instance.
// Token: 0x06001AE6 RID: 6886 RVA: 0x00065628 File Offset: 0x00063828
public override int GetHashCode()
{
return this.label.GetHashCode();
}
/// Indicates whether two structures are equal.
/// true if is equal to ; otherwise, false.
/// The to compare to .
/// The to compare to .
// Token: 0x06001AE7 RID: 6887 RVA: 0x00065638 File Offset: 0x00063838
public static bool operator ==(Label a, Label b)
{
return a.Equals(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: 0x06001AE8 RID: 6888 RVA: 0x00065644 File Offset: 0x00063844
public static bool operator !=(Label a, Label b)
{
return !(a == b);
}
// Token: 0x04000809 RID: 2057
internal int label;
}
}