3 // (C) 2001 Ximian, Inc. http://www.ximian.com
6 namespace System.Reflection.Emit {
10 /// Represents the Token returned by the metadata to represent a Signature.
13 public struct SignatureToken {
15 internal int tokValue;
17 public static readonly SignatureToken Empty;
20 static SignatureToken ()
22 Empty = new SignatureToken ();
26 internal SignatureToken (int val)
35 public override bool Equals (object obj)
37 bool res = obj is SignatureToken;
40 SignatureToken that = (SignatureToken) obj;
41 res = (this.tokValue == that.tokValue);
49 /// Tests whether the given object is an instance of
50 /// SignatureToken and has the same token value.
52 public override int GetHashCode ()
59 /// Returns the metadata token for this Signature.