PatternMatchContext<T>.

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

Syntax

public PatternMatch<T, TResult> With<TResult>(Func<T, bool> pattern, Func<T, TResult> resultFunction)

Type Parameters

Name Description
TResult

Parameters

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

Return Value

Type Description
PatternMatch<T, TResult>