// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
/// Represents the Token returned by the metadata to represent a Type.
/// </summary>
[Serializable]
+ [ComVisible (true)]
public struct TypeToken {
internal int tokValue;
tokValue = val;
}
-
-
/// <summary>
/// </summary>
public override bool Equals (object obj)
return res;
}
+ public bool Equals (TypeToken obj)
+ {
+ return (this.tokValue == obj.tokValue);
+ }
+
+ 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