74 lines
3.1 KiB
C#
74 lines
3.1 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Reflection.Emit
|
|
{
|
|
/// <summary>Represents a label in the instruction stream. Label is used in conjunction with the <see cref="T:System.Reflection.Emit.ILGenerator" /> class.</summary>
|
|
// 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;
|
|
}
|
|
|
|
/// <summary>Checks if the given object is an instance of Label and is equal to this instance.</summary>
|
|
/// <returns>Returns true if <paramref name="obj" /> is an instance of Label and is equal to this object; otherwise, false.</returns>
|
|
/// <param name="obj">The object to compare with this Label instance. </param>
|
|
// 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;
|
|
}
|
|
|
|
/// <summary>Indicates whether the current instance is equal to the specified <see cref="T:System.Reflection.Emit.Label" />.</summary>
|
|
/// <returns>true if the value of <paramref name="obj" /> is equal to the value of the current instance; otherwise, false.</returns>
|
|
/// <param name="obj">The <see cref="T:System.Reflection.Emit.Label" /> to compare to the current instance.</param>
|
|
// Token: 0x06001AE5 RID: 6885 RVA: 0x00065614 File Offset: 0x00063814
|
|
public bool Equals(Label obj)
|
|
{
|
|
return this.label == obj.label;
|
|
}
|
|
|
|
/// <summary>Generates a hash code for this instance.</summary>
|
|
/// <returns>Returns a hash code for this instance.</returns>
|
|
// Token: 0x06001AE6 RID: 6886 RVA: 0x00065628 File Offset: 0x00063828
|
|
public override int GetHashCode()
|
|
{
|
|
return this.label.GetHashCode();
|
|
}
|
|
|
|
/// <summary>Indicates whether two <see cref="T:System.Reflection.Emit.Label" /> structures are equal.</summary>
|
|
/// <returns>true if <paramref name="a" /> is equal to <paramref name="b" />; otherwise, false.</returns>
|
|
/// <param name="a">The <see cref="T:System.Reflection.Emit.Label" /> to compare to <paramref name="b" />.</param>
|
|
/// <param name="b">The <see cref="T:System.Reflection.Emit.Label" /> to compare to <paramref name="a" />.</param>
|
|
// Token: 0x06001AE7 RID: 6887 RVA: 0x00065638 File Offset: 0x00063838
|
|
public static bool operator ==(Label a, Label b)
|
|
{
|
|
return a.Equals(b);
|
|
}
|
|
|
|
/// <summary>Indicates whether two <see cref="T:System.Reflection.Emit.Label" /> structures are not equal.</summary>
|
|
/// <returns>true if <paramref name="a" /> is not equal to <paramref name="b" />; otherwise, false.</returns>
|
|
/// <param name="a">The <see cref="T:System.Reflection.Emit.Label" /> to compare to <paramref name="b" />.</param>
|
|
/// <param name="b">The <see cref="T:System.Reflection.Emit.Label" /> to compare to <paramref name="a" />.</param>
|
|
// 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;
|
|
}
|
|
}
|