Bug 6474 - TimeZoneInfo throws exception when serialized
Summary: TimeZoneInfo throws exception when serialized
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: 2.10.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Martin Baulig
URL:
Depends on:
Blocks:
 
Reported: 2012-08-08 15:26 UTC by James Clegg
Modified: 2016-11-10 13:20 UTC (History)
3 users (show)

Tags: Serialization TimeZoneInfo
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 GitHub or Developer Community 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:
Status:
RESOLVED FIXED

Description James Clegg 2012-08-08 15:26:04 UTC
TimeZoneInfo implements ISerializable, but the GetObjectData() method simply throws a NotImplementedException.   

We should be able to serialize an object of this type using a BinaryFormater (works on MS .NET), but because of this, you get an exception if you try.
Comment 1 Marek Safar 2016-11-10 13:20:02 UTC
Closing as it was implemented some time ago