Class TypeConverterSettings
Ambient settings applied for the default type converters. There's no simple context
to express this information in a more elegant way, although users can create their
own type converters to apply if they wish to.
Since 3.0.x
Availability net6.0, netstandard2.0
Inheritance
Object
TypeConverterSettings
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: NodaTime.Text
Assembly: NodaTime.dll
Syntax
public static class TypeConverterSettings
Properties
DateTimeZoneProvider
Gets the IDateTimeZoneProvider to use to interpret a time zone ID read as part of
a TypeConverter operation for a ZonedDateTime.
Note that if a value other than Tzdb is required, it should be set on
application startup, before any type converters are used. Type converters are cached internally by the framework,
so changes to this property after the first type converter for ZonedDateTime is created will
not generally be visible.
Since 3.0.x
Availability net6.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.