DiscriminatedPatternMatch<T, TResult1>.

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

Syntax

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

Type Parameters

Name Description
TResult2

Parameters

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

Return Value

Type Description
DiscriminatedPatternMatch<T, TResult1, TResult2>