DiscriminatedPatternMatchContext<T>.

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

Syntax

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

Type Parameters

Name Description
TResult

Parameters

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

Return Value

Type Description
DiscriminatedPatternMatch<T, TResult>