Bug 2130 - Allow objects to define custom serialization methods
Summary: Allow objects to define custom serialization methods
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 2.0
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-11-21 15:54 UTC by Jonathan Pobst
Modified: 2012-02-07 06:51 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jonathan Pobst 2011-11-21 15:54:29 UTC
From https://bugzilla.novell.com/show_bug.cgi?id=643621.


In Java, if you want a class to customize how it handles serialization you can
implement these two private methods:

    private void writeObject(java.io.ObjectOutputStream out)
    private void readObject(java.io.ObjectInputStream in)

However, MonoDroid doesn't generate method declarations for private methods so
there's no way to actually do this.

Reproducible: Always

Actual Results:  
You cannot define your own implementations for writeObject()/readObject()

Expected Results:  
You should be able to define your own implementations for
Comment 1 Jonathan Pobst 2011-11-21 15:55:41 UTC
This is probably dependent on:
Comment 2 Atsushi Eno 2012-02-07 06:51:45 UTC
So it's done too.