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