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