[Mono-bugs] [Bug 42695][Nor] New - serialization of strings
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Fri, 9 May 2003 14:39:49 -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 jean-marc.andre@polymtl.ca.
http://bugzilla.ximian.com/show_bug.cgi?id=42695
--- shadow/42695 Fri May 9 14:39:48 2003
+++ shadow/42695.tmp.3179 Fri May 9 14:39:48 2003
@@ -0,0 +1,61 @@
+Bug#: 42695
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: jean-marc.andre@polymtl.ca
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: serialization of strings
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+The .Net
+System.Runtime.Serialization.SoapFormatterServices.GetSerializableMembers()
+function returns an empty MemberInfo[] and the mono one returns a
+MemberInfo[] array with one entry about the "length" field.
+I think the bug can be fixed if the "lenght" field is marked with the
+[NonSerialized] attribute.
+
+
+Steps to reproduce the problem:
+using System;
+using System.Runtime.Serialization;
+using System.Reflection;
+
+public class Test {
+
+ public static void Main() {
+ string str = "Hello World !!";
+
+ MemberInfo[] info = FormatterServices.GetSerializableMembers(str.GetType());
+
+ Console.WriteLine("info length: "+info.Length);
+ }
+}
+
+1.
+2.
+3.
+
+Actual Results:
+the output is "info length: 1"
+
+
+Expected Results:
+the output should be "info length: 0"
+
+How often does this happen?
+Allways
+
+
+Additional Information: