[Mono-bugs] [Bug 543374] New: System.Type.GetMethod does not work as expected.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 30 20:58:25 EDT 2009


           Summary: System.Type.GetMethod does not work as expected.
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: johan.otto at justenough.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development

Description of Problem:

Steps to reproduce the problem:
1. Create a class hierarchy where you have a base abstract class in on assembly
and a descendant class in another.
2. Add a bunch of dummy methods varying in scope visibility.
3. Use reflection method Type.GetMethod("SomeMethodWhichHasParameters")
4. Use reflection method Type.GetMethods()... derived type members are not

Actual Results:

3. The method return null. I have tried various combinations of binding flags.
4. Only the base class methods are returned.

Expected Results:

3. According to MS.NET implementation, specifying parameter types is not
required and it will return the method or throw an exception indicating that is
4. Derived class methods should show up.

How often does this happen? 


Additional Information:


MethodInfo method = null;
                method = Proxy.GetType().GetMethod(methodName);
                if (method == null) 

                    throw ...


Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list