[Mono-bugs] [Bug 74953][Maj] Changed - [GMCS] Converting array to
IEnumerable<T>
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri May 20 14:05:58 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by lupus at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74953
--- shadow/74953 2005-05-20 02:48:54.000000000 -0400
+++ shadow/74953.tmp.17403 2005-05-20 14:05:58.000000000 -0400
@@ -202,6 +202,14 @@
implements IEnumerable<T>, so the runtime structures that would allow
calling IEnumerable<T> methods on arrays are not there.
We likely need to fake this and special case it in the runtime, since
I doubt there is a C# syntax to express that a non-generics class
implements a generics interface.
This likely applies to IList<T> and ICollection<T>, too.
+
+------- Additional Comments From lupus at ximian.com 2005-05-20 14:05 -------
+Adding the generic interfaces is not enough, of course, since we also
+need the implementation of the methods in the interfaces.
+I'm installing beta2 and checking if Array is really a generic type
+there, or if we can put a generic class between Array and the actual
+array class, otherwise it's going to be a mess, since we'd have to
+generate the generic methods at runtime, too.
More information about the mono-bugs
mailing list