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