DiscriminatedPatternMatch<T, TResult1, TResult2, TResult3>.

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

Syntax

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

Parameters

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

Return Value