Noda Time
NodaPatternConverter<(Of <(<'T>)>)> Class
NamespacesNodaTime.Serialization.JsonNetNodaPatternConverter<(Of <(<'T>)>)>

[This is preliminary documentation and is subject to change.]

A JSON converter for types which can be represented by a single string value, parsed or formatted from an IPattern<(Of <(<'T>)>)>.
Declaration Syntax
C#Visual BasicVisual C++
public sealed class NodaPatternConverter<T> : NodaConverterBase<T>
Public NotInheritable Class NodaPatternConverter(Of T) _
	Inherits NodaConverterBase(Of T)
generic<typename T>
public ref class NodaPatternConverter sealed : public NodaConverterBase<T>
Generic Template Parameters
T
The type to convert to/from JSON.
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
NodaPatternConverter<(Of <(<'T>)>)>(IPattern<(Of <<'(T>)>>))
Creates a new instance with a pattern and no validator.

NodaPatternConverter<(Of <(<'T>)>)>(IPattern<(Of <<'(T>)>>), Action<(Of <<'(T>)>>))
Creates a new instance with a pattern and an optional validator. The validator will be called before each value is written, and may throw an exception to indicate that the value cannot be serialized.

CanConvert(Type)
Returns whether or not this converter supports the given type.
(Inherited from NodaConverterBase<(Of <(<'T>)>)>.)
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.
(Inherited from NodaConverterBase<(Of <(<'T>)>)>.)
ReadJsonImpl(JsonReader, JsonSerializer)
Implemented by concrete subclasses, this performs the final conversion from a non-null JSON value to a value of type T.
(Overrides NodaConverterBase<(Of <(<'T>)>)>.ReadJsonImpl(JsonReader, JsonSerializer).)
WriteJson(JsonWriter, Object, JsonSerializer)
Writes the given value to a Json.NET writer.
(Inherited from NodaConverterBase<(Of <(<'T>)>)>.)
WriteJsonImpl(JsonWriter, T, JsonSerializer)
Writes the formatted value to the writer.
(Overrides NodaConverterBase<(Of <(<'T>)>)>.WriteJsonImpl(JsonWriter, T, JsonSerializer).)
Inheritance Hierarchy
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)