NodaMultiplePatternConverter<T>.

NodaMultiplePatternConverter(Action<T>, IPattern<T>[]) 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 NodaMultiplePatternConverter(Action<T> validator, params IPattern<T>[] patterns)

Parameters

Name Type Description
validator Action<T> The validator to call before writing values. May be null, indicating that no validation is required.
patterns IPattern<T>[]

Return Value

Type Description
void