// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
/// <summary>
/// Represents the Token returned by the metadata to represent a Event.
/// </summary>
+#if NET_2_0
+ [ComVisible (true)]
+#endif
[Serializable]
public struct EventToken {
return res;
}
+#if NET_2_0
+ public bool Equals (EventToken obj)
+ {
+ return (this.tokValue == obj.tokValue);
+ }
+
+ public static bool operator == (EventToken a, EventToken b)
+ {
+ return Equals (a, b);
+ }
+
+ public static bool operator != (EventToken a, EventToken b)
+ {
+ return !Equals (a, b);
+ }
+#endif
/// <summary>
/// Tests whether the given object is an instance of