2009-12-08 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mcs / class / corlib / System.Reflection.Emit / SignatureToken.cs
index 8db7506f93ce007c075c3e7b4a273fcfe7a5dcff..1dde91245f6fda1843364a57e1c63ba4159e446a 100644 (file)
@@ -33,11 +33,7 @@ namespace System.Reflection.Emit {
        /// <summary>
        ///  Represents the Token returned by the metadata to represent a Signature.
        /// </summary>
-#if NET_2_0
        [ComVisible (true)]
-#else
-       [Serializable]
-#endif
        public struct SignatureToken {
 
                internal int tokValue;
@@ -70,12 +66,20 @@ namespace System.Reflection.Emit {
                        return res;
                }
 
-#if NET_2_0
                public bool Equals (SignatureToken obj)
                {
                        return (this.tokValue == obj.tokValue);
                }
-#endif
+
+               public static bool operator == (SignatureToken a, SignatureToken b)
+               {
+                       return Equals (a, b);
+               }
+
+               public static bool operator != (SignatureToken a, SignatureToken b)
+               {
+                       return !Equals (a, b);
+               }
 
                /// <summary>
                ///  Tests whether the given object is an instance of