InstantPatternConverter.

InstantPatternConverter(IPattern<Instant>[], IPattern<OffsetDateTime>[]) Constructor

Summary

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.

Syntax

public InstantPatternConverter(IPattern<Instant>[] patterns, IPattern<OffsetDateTime>[] alternatePatterns)

Parameters

Name Type Description
patterns IPattern<Instant>[]
alternatePatterns IPattern<OffsetDateTime>[]

Return Value

Type Description
void