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, Func<TTarget, bool> acceptRule )
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.
- acceptRule (Func<(Of <(<'TTarget, Boolean>)>)>)
- A predicate of TTarget to determine when to this instance should apply the format.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | composition is nullNothingnullptr. |
| ArgumentNullException | format is nullNothingnullptr. |
| ArgumentNullException | acceptRule is nullNothingnullptr. |
