[Mono-bugs] [Bug 69666][Nor] Changed - Return value null from custom binder is unchecked

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jul 4 18:48:22 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 bmaurer at users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=69666

--- shadow/69666	2005-05-27 02:43:06.000000000 -0400
+++ shadow/69666.tmp.27793	2005-07-04 18:48:22.000000000 -0400
@@ -71,6 +71,21 @@
 /home/fb6/troeger/prog/migration04/MigrationLib/MigrantEnv.cs:89)
 MigrationLib.MigrantEnv:FinishDeserialize ()
 
 Expected Results:
 
 This may throw SerializationException with a proper description.
+
+------- Additional Comments From bmaurer at users.sf.net  2005-07-04 18:48 -------
+according to http://bdn.borland.com/article/0,1410,29787,00.html
+
+A serialization binder is an object that inherits from the abstract
+SerializationBinder base class and implements its only method,
+BindToType. During deserialization, the framework calls the BindToType
+method for each object found in the stream. The BindToType method
+examines the type of this object and returns the type of object that
+should be constructed instead. If the binder doesn't want to change
+the type (binders usually change only a few specific types and ignore
+all others) it can simply return nil and the original type as found in
+the stream will be constructed. 
+
+MSFT probably throws an exception if the type can't be found.


More information about the mono-bugs mailing list