// 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 Method.
/// </summary>
+#if NET_2_0
+ [ComVisible (true)]
+#endif
[Serializable]
public struct MethodToken {
tokValue = val;
}
-
-
/// <summary>
/// </summary>
public override bool Equals (object obj)
return res;
}
+#if NET_2_0
+ public bool Equals (MethodToken obj)
+ {
+ return (this.tokValue == obj.tokValue);
+ }
+#endif
/// <summary>
/// Tests whether the given object is an instance of