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
<Instant>
- NodaConverterBase
graph BT
Type-->Base0["NodaConverterBase<Instant>"]
Type["InstantPatternConverter"]
class Type type-node
Syntax
public sealed class InstantPatternConverter : NodaConverterBase<Instant>
Attributes
| Type | Description |
|---|---|
| Nullable |
|
| NullableAttribute |
Constructors
| Name | Summary |
|---|---|
| Instant |
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. |
Properties
| Name | Value | Summary |
|---|---|---|
| AlternatePatterns | IEnumerable |
|
| Patterns | IEnumerable |
Methods
| Name | Value | Summary |
|---|---|---|
| ReadJsonImpl |
Instant |
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.
|
