Fork me on GitHubEpicdominant domains
APIEpic.VisitorsSimpleFormatter<(Of <(<'TTarget>)>)>SimpleFormatter<(Of <(<'TTarget>)>)>(CompositeVisitor<(Of <<'(String>)>>), Func<(Of <<'(TTarget, String>)>>), Func<(Of <<'(TTarget, Boolean>)>>))

SimpleFormatter<(Of <(<'TTarget>)>)> Constructor (composition, format, acceptRule)
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
ExceptionCondition
ArgumentNullExceptioncomposition is nullNothingnullptr.
ArgumentNullExceptionformat is nullNothingnullptr.
ArgumentNullExceptionacceptRule is nullNothingnullptr.
blog comments powered by Disqus