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
<OffsetDateTime>
- NodaConverterBase
graph BT
Type-->Base0["NodaConverterBase<OffsetDateTime>"]
Type["OffsetDateTimePatternConverter"]
class Type type-node
Syntax
public sealed class OffsetDateTimePatternConverter : NodaConverterBase<OffsetDateTime>
Attributes
Type | Description |
---|---|
Nullable |
|
NullableAttribute |
Constructors
Name | Summary |
---|---|
Offset |
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 |
OffsetDateTime |
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.
|