[Mono-bugs] [Bug 342536] ObjectDataSource can't find appropriate method in some cases

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 1 22:09:49 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=342536

User gnorton at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=342536#c4


Geoff Norton <gnorton at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |gnorton at novell.com
          Component|Sys.Web                                         |generics
            Product|Mono: Class Libraries                           |Mono: Runtime
            Version|1.2.6                                           |SVN




--- Comment #4 from Geoff Norton <gnorton at novell.com>  2008-02-01 20:09:49 MST ---
This bug has nothing to do with System.Web in actual fact is a problem with
reflection of generic types; better real repro:

using System;
using System.Reflection;
using System.Collections.Generic;

public class BaseType <T> {
        public void GetItems (int count) {
        }
}

public class Runner {
        static void Main (string [] args) {
                MethodInfo mi = typeof (BaseType<string>).GetMethod
("GetItems");

                foreach (ParameterInfo pi in mi.GetParameters ()) {
                        Console.WriteLine ("{0} {1}", pi, pi.Name);
                }
        }
}


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


More information about the mono-bugs mailing list