mscorlib(4.0.0.0) API with additions
ParameterToken.cs
2 
4 {
7  [ComVisible(true)]
8  public struct ParameterToken
9  {
11  public static readonly ParameterToken Empty;
12 
13  internal int m_tkParameter;
14 
17  public int Token => m_tkParameter;
18 
19  internal ParameterToken(int tkParam)
20  {
21  m_tkParameter = tkParam;
22  }
23 
26  public override int GetHashCode()
27  {
28  return m_tkParameter;
29  }
30 
35  public override bool Equals(object obj)
36  {
37  if (obj is ParameterToken)
38  {
39  return Equals((ParameterToken)obj);
40  }
41  return false;
42  }
43 
48  public bool Equals(ParameterToken obj)
49  {
50  return obj.m_tkParameter == m_tkParameter;
51  }
52 
58  public static bool operator ==(ParameterToken a, ParameterToken b)
59  {
60  return a.Equals(b);
61  }
62 
68  public static bool operator !=(ParameterToken a, ParameterToken b)
69  {
70  return !(a == b);
71  }
72  }
73 }
int Token
Retrieves the metadata token for this parameter.
static readonly ParameterToken Empty
The default ParameterToken with P:System.Reflection.Emit.ParameterToken.Token value 0.
Definition: __Canon.cs:3
override int GetHashCode()
Generates the hash code for this parameter.
bool Equals(ParameterToken obj)
Indicates whether the current instance is equal to the specified T:System.Reflection....
static bool operator !=(ParameterToken a, ParameterToken b)
Indicates whether two T:System.Reflection.Emit.ParameterToken structures are not equal.
override bool Equals(object obj)
Checks if the given object is an instance of ParameterToken and is equal to this instance.
Specifies that the class can be serialized.
static bool operator==(ParameterToken a, ParameterToken b)
Indicates whether two T:System.Reflection.Emit.ParameterToken structures are equal.
The ParameterToken struct is an opaque representation of the token returned by the metadata to repres...