Class XmlSerializationSettings
Ambient settings applied during XML serialization and deserialization.
XML serialization in .NET does not provide any "hooks" for advanced configuration.
Most of the time that's a good thing, in terms of compatibility: we want
the same data to be serialized the same way across multiple programs for
interoperability. There are some exceptions to this however, where decisions
need to be made and there's no single "right for everyone" choice.
Since 3.0.x
Availability net6.0, net8.0, netstandard2.0
Inherited Members
Namespace: NodaTime.Xml
Assembly: NodaTime.dll
Syntax
public static class XmlSerializationSettings
Properties
DateTimeZoneProvider
Gets the IDateTimeZoneProvider to use to interpret a time zone ID read as part of
XML serialization.
Since 3.0.x
Availability net6.0, net8.0, netstandard2.0
Declaration
public static IDateTimeZoneProvider DateTimeZoneProvider { get; set; }
Property Value
Type | Description |
---|---|
IDateTimeZoneProvider | The IDateTimeZoneProvider to use to interpret a time zone ID read as part of
XML serialization. |
Remarks
This property defaults to Tzdb.