2010-04-01 Rodrigo Kumpera <rkumpera@novell.com>
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 1 Apr 2010 17:37:35 +0000 (17:37 -0000)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 1 Apr 2010 17:37:35 +0000 (17:37 -0000)
* ModuleBuilder.cs: Implement GetMethodImpl.

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

mcs/class/corlib/System.Reflection.Emit/ChangeLog
mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs

index fbb05f4a32832e321ed2905a1edff9d6096f5e16..40e5fa3cf5ab01ca8ac6ac00bfabde8a2786c3bc 100644 (file)
@@ -1,3 +1,7 @@
+2010-04-01 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * ModuleBuilder.cs: Implement GetMethodImpl.
+
 2010-04-01 Rodrigo Kumpera  <rkumpera@novell.com>
 
        * ModuleBuilder.cs (DefineType): Raise the correct exception
index 63e38102630259d5131b91b2f7dfb353ba137084..9984eaf6d0e474fe7a7bb55e5c66d18c58010954 100644 (file)
@@ -834,6 +834,15 @@ namespace System.Reflection.Emit {
                {
                        return false;
                }
+
+               protected override MethodInfo GetMethodImpl (string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) 
+               {
+                       if (global_type_created == null)
+                               return null;
+                       if (types == null)
+                               return global_type_created.GetMethod (name);
+                       return global_type_created.GetMethod (name, bindingAttr, binder, callConvention, types, modifiers);
+               }
 #endif
        }