[This is preliminary documentation and is subject to change.]
Base class for all the Json.NET converters which handle value types (which is most of them).
This deals handles all the boilerplate code dealing with nullity.
| C# | Visual Basic | Visual C++ |
public abstract class NodaConverterBase<T> : JsonConverter
Public MustInherit Class NodaConverterBase(Of T) _ Inherits JsonConverter
generic<typename T> public ref class NodaConverterBase abstract : public JsonConverter
- T
- The type to convert to/from JSON.
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| NodaConverterBase<(Of <(<'T>)>)>()()()() | Initializes a new instance of the NodaConverterBase<(Of <(<'T>)>)> class | |
| CanConvert(Type) |
Returns whether or not this converter supports the given type.
(Overrides JsonConverter.CanConvert(Type).) | |
| CanRead | (Inherited from JsonConverter.) | |
| CanWrite | (Inherited from JsonConverter.) | |
| GetSchema()()()() | (Inherited from JsonConverter.) | |
| ReadJson(JsonReader, Type, Object, JsonSerializer) |
Converts the JSON stored in a reader into the relevant Noda Time type.
(Overrides JsonConverter.ReadJson(JsonReader, Type, Object, JsonSerializer).) | |
| ReadJsonImpl(JsonReader, JsonSerializer) |
Implemented by concrete subclasses, this performs the final conversion from a non-null JSON value to
a value of type T.
| |
| WriteJson(JsonWriter, Object, JsonSerializer) |
Writes the given value to a Json.NET writer.
(Overrides JsonConverter.WriteJson(JsonWriter, Object, JsonSerializer).) | |
| WriteJsonImpl(JsonWriter, T, JsonSerializer) |
Implemented by concrete subclasses, this performs the final write operation for a non-null value of type T
to JSON.
|
| Object | |||
| JsonConverter | |||
| NodaConverterBase<(Of <(<'T>)>)> | |||
| NodaPatternConverter<(Of <(<'T>)>)> | |||
Assembly: NodaTime.Serialization.JsonNet (Module: NodaTime.Serialization.JsonNet.dll) Version: 1.0.0.0 (1.0.0.0)