[Mono-bugs] [Bug 44955][Min] New - System.Runtime.Serialization.SerializationInfo:GetValue doesn't error out if given @type = null
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Tue, 17 Jun 2003 02:02:44 -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 peter@newton.cx.
http://bugzilla.ximian.com/show_bug.cgi?id=44955
--- shadow/44955 Tue Jun 17 02:02:44 2003
+++ shadow/44955.tmp.32477 Tue Jun 17 02:02:44 2003
@@ -0,0 +1,25 @@
+Bug#: 44955
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: peter@newton.cx
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.Runtime.Serialization.SerializationInfo:GetValue doesn't error out if given @type = null
+
+According to the MSDN docs, GetValue in SerializationInfo should throw an
+Arg Null exception if given a null @type argument. It doesn't do this.
+
+(I was trying this because I didn't realize that the deserializer would
+automatically create an instance of the appropriate subclass if you were
+trying to deserialize something not of the exact type you gave it. If you
+care.)