[This is preliminary documentation and is subject to change.]
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.


Exception | Condition |
---|---|
ArgumentNullException | pattern is null. |
Assembly: NodaTime.Serialization.JsonNet (Module: NodaTime.Serialization.JsonNet.dll) Version: 1.0.0.0 (1.0.0.0)