[Mono-bugs] [Bug 484246] New: Type.GetInterface(string) fails to search by generic type definition

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 11 07:14:36 EDT 2009


           Summary: Type.GetInterface(string) fails to search by generic
                    type definition
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i586
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: atsushi at ximian.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:
Gecko/2009021910 Firefox/3.0.7 GTB5 (.NET CLR 3.5.30729)

The following code tries to get instantiated generic IDictionary interface just
giving generic type definition name. It returns IDictionary<string,string> on
NET. Mono does not.

public class Test
  public static void Main ()
    System.Console.WriteLine (typeof
      .GetInterface ("System.Collections.Generic.IDictionary`2"));

I'm not sure which is correct behavior though - to return or not to return the

Reproducible: Always

Steps to Reproduce:
explained above.
Actual Results:  
nothing printed.

Expected Results:  
print System.Collections.Generic.IDictionary`2[System.String,System.String]

Configure bugmail: https://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