mscorlib(4.0.0.0) API with additions
SignatureToken.cs
2 
4 {
6  [ComVisible(true)]
7  public struct SignatureToken
8  {
10  public static readonly SignatureToken Empty;
11 
12  internal int m_signature;
13 
14  internal ModuleBuilder m_moduleBuilder;
15 
18  public int Token => m_signature;
19 
20  internal SignatureToken(int str, ModuleBuilder mod)
21  {
22  m_signature = str;
23  m_moduleBuilder = mod;
24  }
25 
28  public override int GetHashCode()
29  {
30  return m_signature;
31  }
32 
37  public override bool Equals(object obj)
38  {
39  if (obj is SignatureToken)
40  {
41  return Equals((SignatureToken)obj);
42  }
43  return false;
44  }
45 
50  public bool Equals(SignatureToken obj)
51  {
52  return obj.m_signature == m_signature;
53  }
54 
60  public static bool operator ==(SignatureToken a, SignatureToken b)
61  {
62  return a.Equals(b);
63  }
64 
70  public static bool operator !=(SignatureToken a, SignatureToken b)
71  {
72  return !(a == b);
73  }
74  }
75 }
Definition: __Canon.cs:3
static bool operator==(SignatureToken a, SignatureToken b)
Indicates whether two T:System.Reflection.Emit.SignatureToken structures are equal.
bool Equals(SignatureToken obj)
Indicates whether the current instance is equal to the specified T:System.Reflection....
Defines and represents a module in a dynamic assembly.
static readonly SignatureToken Empty
The default SignatureToken with P:System.Reflection.Emit.SignatureToken.Token value 0.
override bool Equals(object obj)
Checks if the given object is an instance of SignatureToken and is equal to this instance.
static bool operator !=(SignatureToken a, SignatureToken b)
Indicates whether two T:System.Reflection.Emit.SignatureToken structures are not equal.
int Token
Retrieves the metadata token for the local variable signature for this method.
Represents the Token returned by the metadata to represent a signature.
override int GetHashCode()
Generates the hash code for this signature.