Click or drag to resize

JsonTimeZoneInfoConverter Class

System.Text.Json serializer converter helper class for unsupported TimeZoneInfo structure (see CollectionTimeZone).
Inheritance Hierarchy
SystemObject
  System.Text.Json.SerializationJsonConverter
    System.Text.Json.SerializationJsonConverterTimeZoneInfo
      OpenDiscoverSDK.Interfaces.SettingsJsonTimeZoneInfoConverter

Namespace: OpenDiscoverSDK.Interfaces.Settings
Assembly: OpenDiscoverSDK.Interfaces (in OpenDiscoverSDK.Interfaces.dll) Version: 2025.4.4.0 (2025.4.4)
Syntax
C#
public class JsonTimeZoneInfoConverter : JsonConverter<TimeZoneInfo>

The JsonTimeZoneInfoConverter type exposes the following members.

Constructors
 NameDescription
Public methodJsonTimeZoneInfoConverterInitializes a new instance of the JsonTimeZoneInfoConverter class
Top
Properties
 NameDescription
Public propertyHandleNullGets a value that indicates whether should be passed to the converter on serialization, and whether Null should be passed on deserialization.
(Inherited from JsonConverterTimeZoneInfo)
Public propertyTypeGets the type being converted by the current converter instance.
(Inherited from JsonConverterTimeZoneInfo)
Top
Methods
 NameDescription
Public methodCanConvertDetermines whether the specified type can be converted.
(Inherited from JsonConverterTimeZoneInfo)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodRead Reads and converts the JSON to type TimeZoneInfo.
(Overrides JsonConverterTRead(Utf8JsonReader, Type, JsonSerializerOptions))
Public methodReadAsPropertyNameReads a dictionary key from a JSON property name.
(Inherited from JsonConverterTimeZoneInfo)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWrite Writes a TimeZoneInfo value as JSON.
(Overrides JsonConverterTWrite(Utf8JsonWriter, T, JsonSerializerOptions))
Public methodWriteAsPropertyNameWrites a dictionary key as a JSON property name.
(Inherited from JsonConverterTimeZoneInfo)
Top
See Also