[Mono-bugs] [Bug 49878][Wis] Changed - XML serialization crashes on IEnumerable & ICollection
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 20 Oct 2003 13:05:23 -0400 (EDT)
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 orphennui@yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=49878
--- shadow/49878 2003-10-20 13:04:42.000000000 -0400
+++ shadow/49878.tmp.28784 2003-10-20 13:05:23.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 49878
Product: Mono/Class Libraries
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: System.XML
AssignedTo: mono-bugs@ximian.com
ReportedBy: orphennui@yahoo.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -34,6 +34,25 @@
System.Xml.Serialization.XmlReflectionImporter:ImportTypeMapping
(System.Type,System.Xml.Serialization.XmlRootAttribute,string)
in <0x000fa> System.Xml.Serialization.XmlSerializer:.ctor
(System.Type,System.Xml.Serialization.XmlAttributeOverrides,System.Type[],System.Xml.Serialization.XmlRootAttribute,string)
in <0x00021> System.Xml.Serialization.XmlSerializer:.ctor (System.Type)
in <0x0007e> .Foo:Main ()
+
+------- Additional Comments From orphennui@yahoo.com 2003-10-20 13:05 -------
+Test code:
+
+using System.Collections;
+using System.Xml.Serialization;
+
+public class Foo {
+ public IEnumerable list;
+
+ static void Main () {
+ Foo foo = new Foo ();
+ foo.list = new ArrayList ();
+
+ XmlSerializer ser = new XmlSerializer (typeof (Foo));
+ ser.Serialize (System.Console.Out, foo);
+ }
+}
+