https://bugzilla.novell.com/show_bug.cgi?id=325495#c7
--- Comment #7 from Paolo Molaro <[EMAIL PROTECTED]> 2007-10-02 07:32:36 MST
---
It looks like some of the generic interfaces are explicitly
implemented (as in returned from GetInterfaces()). This still allows the above
idea to work.
using System;
class T {
static void Main () {
Type[] ifaces;
Console.WriteLine ("{0} interfaces:", typeof(string[]));
ifaces = typeof(string[]).GetInterfaces ();
for (int i = 0; i < ifaces.Length; ++i)
Console.WriteLine (ifaces [i]);
Console.WriteLine ("{0} interfaces:", typeof(string[][]));
ifaces = typeof(string[][]).GetInterfaces ();
for (int i = 0; i < ifaces.Length; ++i)
Console.WriteLine (ifaces [i]);
}
}
System.String[] interfaces:
System.ICloneable
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Generic.IList`1[System.String]
System.Collections.Generic.ICollection`1[System.String]
System.Collections.Generic.IEnumerable`1[System.String]
System.String[][] interfaces:
System.ICloneable
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Generic.IList`1[System.String[]]
System.Collections.Generic.ICollection`1[System.String[]]
System.Collections.Generic.IEnumerable`1[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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs