DiscriminatedPatternMatch<T, TResult1>.

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

Syntax

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

Type Parameters

Name Description
TResult2

Parameters

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

Return Value

Type Description
DiscriminatedPatternMatch<T, TResult1, TResult2>