Extensions Class

Summary

Static class containing extension methods to configure Json.NET for Noda Time types.
graph BT Type-->Base0["Object"] Type["Extensions"] class Type type-node

Syntax

public static class Extensions

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Methods

Name Value Summary
ConfigureForComplexTableEntity(JsonSerializer, IDateTimeZoneProvider) JsonSerializer
Configures Json.NET with everything required to properly serialize and deserialize NodaTime data types.
static
ConfigureForComplexTableEntity(JsonSerializerSettings, IDateTimeZoneProvider) JsonSerializerSettings
Configures Json.NET with everything required to properly serialize and deserialize NodaTime data types.
static
WithIsoIntervalConverter(JsonSerializer) JsonSerializer
Configures the given serializer to use NodaTime.Serialization.JsonNet.NodaConverters.IsoIntervalConverter. Any other converters which can convert NodaTime.Interval are removed from the serializer.
static
WithIsoIntervalConverter(JsonSerializerSettings) JsonSerializerSettings
Configures the given serializer settings to use NodaTime.Serialization.JsonNet.NodaConverters.IsoIntervalConverter. Any other converters which can convert NodaTime.Interval are removed from the serializer.
static