* MethodBase.cs (MethodBase): Implemented
GetGenericMethodDefinition() and HasGenericParameters.
svn path=/trunk/mcs/; revision=23899
+2004-03-10 Martin Baulig <martin@ximian.com>
+
+ * MethodBase.cs (MethodBase): Implemented
+ GetGenericMethodDefinition() and HasGenericParameters.
+
2004-03-09 Martin Baulig <martin@ximian.com>
* MonoEvent.cs (MonoEventInfo): Replaced `parent' with
}
throw new Exception ("Method is not a builder method");
}
+
+#if NET_1_2
+ [MethodImplAttribute(MethodImplOptions.InternalCall)]
+ extern MethodInfo GetGenericMethodDefinition_impl ();
+
+ public virtual MethodInfo GetGenericMethodDefinition ()
+ {
+ MethodInfo res = GetGenericMethodDefinition_impl ();
+ if (res == null)
+ throw new InvalidOperationException ();
+
+ return res;
+ }
+
+ public extern bool HasGenericParameters {
+ [MethodImplAttribute(MethodImplOptions.InternalCall)]
+ get;
+ }
+#endif
}
}