Json Time Zone Info Converter Class
System.Text.Json serializer converter helper class for unsupported TimeZoneInfo structure
(see CollectionTimeZone).
Definition
Namespace: OpenDiscoverSDK.Interfaces.Settings
Assembly: OpenDiscoverSDK.Interfaces (in OpenDiscoverSDK.Interfaces.dll) Version: 2026.2.6.0 (2026.02.06)
Assembly: OpenDiscoverSDK.Interfaces (in OpenDiscoverSDK.Interfaces.dll) Version: 2026.2.6.0 (2026.02.06)
C#
public class JsonTimeZoneInfoConverter : JsonConverter<TimeZoneInfo>- Inheritance
- Object JsonConverter JsonConverterTimeZoneInfo JsonTimeZoneInfoConverter
Constructors
| JsonTimeZoneInfoConverter | Initializes a new instance of the JsonTimeZoneInfoConverter class |
Properties
| HandleNull | Gets a value that indicates whether should be passed to the converter on serialization, and whether Null should be passed on deserialization. (Inherited from JsonConverterTimeZoneInfo) |
| Type | Gets the type being converted by the current converter instance. (Inherited from JsonConverterTimeZoneInfo) |
Methods
| CanConvert | Determines whether the specified type can be converted. (Inherited from JsonConverterTimeZoneInfo) |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| Read |
Reads and converts the JSON to type TimeZoneInfo.
(Overrides JsonConverterTRead(Utf8JsonReader, Type, JsonSerializerOptions)) |
| ReadAsPropertyName | Reads a dictionary key from a JSON property name. (Inherited from JsonConverterTimeZoneInfo) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Write |
Writes a TimeZoneInfo value as JSON.
(Overrides JsonConverterTWrite(Utf8JsonWriter, T, JsonSerializerOptions)) |
| WriteAsPropertyName | Writes a dictionary key as a JSON property name. (Inherited from JsonConverterTimeZoneInfo) |