New test.
[mono.git] / mcs / class / corlib / System.Reflection / MethodBase.cs
index 7dac45b5593d96f72e76f97b15bb798722f570eb..0f9c0452f2b248ef9ef7097d7343c56c14ff32fe 100644 (file)
@@ -182,24 +182,19 @@ namespace System.Reflection {
                        throw new NotSupportedException ();
                }
 
-               public virtual MethodInfo GetGenericMethodDefinition ()
-               {
-                       throw new NotSupportedException ();
-               }
-
-               public virtual bool Mono_IsInflatedMethod {
+               public virtual bool ContainsGenericParameters {
                        get {
-                               throw new NotSupportedException ();
+                               return false;
                        }
                }
 
-               public virtual bool HasGenericParameters {
+               public virtual bool IsGenericMethodDefinition {
                        get {
                                throw new NotSupportedException ();
                        }
                }
 
-               public virtual bool IsGenericMethodDefinition {
+               public virtual bool IsGenericMethod {
                        get {
                                throw new NotSupportedException ();
                        }
@@ -211,12 +206,8 @@ namespace System.Reflection {
                internal extern static MethodBody GetMethodBodyInternal (IntPtr handle);
 
                internal static MethodBody GetMethodBody (IntPtr handle) {
-                       MethodBody mb = GetMethodBodyInternal (handle);
-                       if (mb == null)
-                               throw new ArgumentException ("Only methods with IL bodies are supported.");
-                       else
-                               return mb;
-               }                       
+                       return GetMethodBodyInternal (handle);
+               }
 
                public virtual MethodBody GetMethodBody () {
                        throw new NotSupportedException ();