Summary
A JSON converter for types which can be represented by a single string value, parsed or formatted
from an
NodaTime.Text.IPattern`1
.
- Assembly
- Rocket
.Surgery .Azure .Storage .dll - Namespace
- Rocket
.Surgery .Azure .Storage .Converters - Base Types
-
- NodaConverterBase
<T>
- NodaConverterBase
graph BT
Type-->Base0["NodaConverterBase<T>"]
Type["NodaMultiplePatternConverter<T>"]
class Type type-node
Syntax
public sealed class NodaMultiplePatternConverter<T> : NodaConverterBase<T>
Attributes
Type | Description |
---|---|
Nullable |
|
NullableAttribute |
Type Parameters
Name | Description |
---|---|
T | The type to convert to/from JSON. |
Constructors
Name | Summary |
---|---|
Noda |
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. |
Noda |
Creates a new instance with a pattern and no validator. |
Properties
Methods
Name | Value | Summary |
---|---|---|
ReadJsonImpl |
T |
Implemented by concrete subclasses, this performs the final conversion from a non-null JSON value to
a value of type T.
|
WriteJsonImpl |
void |
Writes the formatted value to the writer.
|
Extension Methods
Name | Value | Summary |
---|---|---|
SetBackingValue |
T |
Sets the backing value.
From ValueExtensions
|
With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|