mscorlib(4.0.0.0) API with additions
Label.cs
2 
4 {
7  [ComVisible(true)]
8  public struct Label
9  {
10  internal int m_label;
11 
12  internal Label(int label)
13  {
14  m_label = label;
15  }
16 
17  internal int GetLabelValue()
18  {
19  return m_label;
20  }
21 
24  public override int GetHashCode()
25  {
26  return m_label;
27  }
28 
32  public override bool Equals(object obj)
33  {
34  if (obj is Label)
35  {
36  return Equals((Label)obj);
37  }
38  return false;
39  }
40 
45  public bool Equals(Label obj)
46  {
47  return obj.m_label == m_label;
48  }
49 
55  public static bool operator ==(Label a, Label b)
56  {
57  return a.Equals(b);
58  }
59 
65  public static bool operator !=(Label a, Label b)
66  {
67  return !(a == b);
68  }
69  }
70 }
override bool Equals(object obj)
Checks if the given object is an instance of Label and is equal to this instance.
Definition: Label.cs:32
static bool operator==(Label a, Label b)
Indicates whether two T:System.Reflection.Emit.Label structures are equal.
Definition: Label.cs:55
static bool operator !=(Label a, Label b)
Indicates whether two T:System.Reflection.Emit.Label structures are not equal.
Definition: Label.cs:65
Definition: __Canon.cs:3
override int GetHashCode()
Generates a hash code for this instance.
Definition: Label.cs:24
bool Equals(Label obj)
Indicates whether the current instance is equal to the specified T:System.Reflection....
Definition: Label.cs:45
Represents a label in the instruction stream. Label is used in conjunction with the T:System....
Definition: Label.cs:8
Specifies that the class can be serialized.