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