DiscriminatedPatternMatch<T, TResult1, TResult2, TResult3>.

With(Func<T, bool>, Func<T, TResult2>) Method

Syntax

public DiscriminatedPatternMatch<T, TResult1, TResult2, TResult3> With(Func<T, bool> pattern, Func<T, TResult2> resultFunction)

Parameters

Name Type Description
pattern Func<T, bool>
resultFunction Func<T, TResult2>

Return Value