DiscriminatedPatternMatch<T, TResult1, TResult2>.

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

Syntax

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

Parameters

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

Return Value