X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Reflection.Emit%2FSignatureToken.cs;h=1dde91245f6fda1843364a57e1c63ba4159e446a;hb=e1d99a02496e65793122eb1b277262fbbd342ba9;hp=8db7506f93ce007c075c3e7b4a273fcfe7a5dcff;hpb=fc4b07f20f9e79fe99d4b520bb5ff8b5e80b10f6;p=mono.git
diff --git a/mcs/class/corlib/System.Reflection.Emit/SignatureToken.cs b/mcs/class/corlib/System.Reflection.Emit/SignatureToken.cs
index 8db7506f93c..1dde91245f6 100644
--- a/mcs/class/corlib/System.Reflection.Emit/SignatureToken.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/SignatureToken.cs
@@ -33,11 +33,7 @@ namespace System.Reflection.Emit {
///
/// Represents the Token returned by the metadata to represent a Signature.
///
-#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);
+ }
///
/// Tests whether the given object is an instance of