[Mono-bugs] [Bug 49879][Wis] Changed - XML serialization doesn't handle recursion

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 20 Oct 2003 14:52:53 -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=49879

--- shadow/49879	2003-10-20 14:13:21.000000000 -0400
+++ shadow/49879.tmp.30700	2003-10-20 14:52:53.000000000 -0400
@@ -21,6 +21,29 @@
 manually implementing ISerializable.
 
 Is this by design (from MS), or does mono just not support it yet?
 
 ------- Additional Comments From lluis@ximian.com  2003-10-20 14:13 -------
 Please, can you post a test case?
+
+------- Additional Comments From orphennui@yahoo.com  2003-10-20 14:52 -------
+using System;
+using System.Xml.Serialization;
+
+class Bum {
+	public Ser ser;
+}
+class Ser {
+	public Bum bum;
+}
+
+public class Foo {
+	public static void Main () {
+		Bum bum = new Bum();
+		Ser ser = new Ser();
+		bum.ser = ser;
+		ser.bum = bum;
+		XmlSerializer serial = new XmlSerializer (typeof (Bum));
+		serial.Serialize (Console.Out, bum);
+	}
+}
+