Issue 219 in noda-time: Cleaner Period XML serialization

16 views
Skip to first unread message

noda...@googlecode.com

unread,
May 18, 2013, 4:06:38 AM5/18/13
to noda...@googlegroups.com
Status: Accepted
Owner: ----
Labels: Type-Enhancement Milestone-1.2-consider

New issue 219 by jonathan.skeet: Cleaner Period XML serialization
http://code.google.com/p/noda-time/issues/detail?id=219

Our currently-documented XML serialization strategy for Period is to have a
separate property of type PeriodBuilder. However, there's a cleaner
alternative which would work under .NET:

[XmlElement(typeof(Period.XmlSerializationSupport))
public Period Foo { get; set; }

Here, Period.XmlSerializationSupport would be a mutable class which just
wrapped a Period field. It looks like this doesn't work under Mono though,
so we'd need careful documentation and we'd want to keep the PeriodBuilder
serialization support.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

noda...@googlecode.com

unread,
Jun 15, 2013, 6:22:47 AM6/15/13
to noda...@googlegroups.com
Updates:
Status: WontFix

Comment #1 on issue 219 by jonathan.skeet: Cleaner Period XML serialization
http://code.google.com/p/noda-time/issues/detail?id=219

It's not clear why this would work, actually - I believe it's actually
meant to be for inheritance scenarios. I think we're better off with the
PeriodBuilder approach - it's slightly ugly, but it's simple.
Reply all
Reply to author
Forward
0 new messages