Initializes a new instance of the SimpleFormatter<(Of <(<'TTarget>)>)> class.
Assembly: Epic.Prelude
Declaration Syntax
| C# |
public SimpleFormatter( CompositeVisitor<string> composition, Func<TTarget, string> format )
Parameters
- composition (CompositeVisitor<(Of <(<'String>)>)>)
- The composition of formatters that this SimpleFormatter<(Of <(<'TTarget>)>)> will belong to.
- format (Func<(Of <(<'TTarget, String>)>)>)
- A function that produce a string out of a TTarget.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | composition is nullNothingnullptr. |
| ArgumentNullException | format is nullNothingnullptr. |
