[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 02:48:54 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-19 12:49:38.000000000 -0400
+++ shadow/74953.tmp.12055 2005-05-20 02:48:54.000000000 -0400
@@ -193,6 +193,15 @@
called method will make an indirect call through the vtable to call
`GetEnumerator()' (or whatever) and this'll crash since it's using the
wrong `MonoClass *'.
------- Additional Comments From miguel at ximian.com 2005-05-19 12:49 -------
Paolo, can you comment on this?
+
+------- Additional Comments From lupus at ximian.com 2005-05-20 02:48 -------
+There is no info in the metadata that tells the runtime that an array
+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.
More information about the mono-bugs
mailing list