2004-03-10 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Wed, 10 Mar 2004 22:10:20 +0000 (22:10 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 10 Mar 2004 22:10:20 +0000 (22:10 -0000)
* MethodBase.cs (MethodBase): Implemented
GetGenericMethodDefinition() and HasGenericParameters.

svn path=/trunk/mcs/; revision=23899

mcs/class/corlib/System.Reflection/ChangeLog
mcs/class/corlib/System.Reflection/MethodBase.cs

index 881c21645be91c4c44ca3e960000e8f5bbe55a24..dfcd624890e42faea9722848f3e2f310a263463b 100644 (file)
@@ -1,3 +1,8 @@
+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
index ebd86085760f093de7d2c5970a82a5ed76c93678..539d697021bf6b76519c582adcda76acb59e7e25 100644 (file)
@@ -140,5 +140,24 @@ namespace System.Reflection {
                        }
                        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
        }
 }