DiscriminatedPatternMatch<T, TResult1, TResult2, TResult3>.

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

Syntax

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

Type Parameters

Name Description
TResult4

Parameters

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

Return Value

Type Description
DiscriminatedPatternMatch<T, TResult1, TResult2, TResult3, TResult4>