/// <summary>
/// Represents the Token returned by the metadata to represent a Method.
/// </summary>
-#if NET_2_0
[ComVisible (true)]
-#endif
[Serializable]
public struct MethodToken {
return res;
}
-#if NET_2_0
public bool Equals (MethodToken obj)
{
return (this.tokValue == obj.tokValue);
}
-#endif
+
+ public static bool operator == (MethodToken a, MethodToken b)
+ {
+ return Equals (a, b);
+ }
+
+ public static bool operator != (MethodToken a, MethodToken b)
+ {
+ return !Equals (a, b);
+ }
/// <summary>
/// Tests whether the given object is an instance of