PatternMatchSingleContext<T>.

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

Syntax

public PatternMatchSingle<T, TResult> With<TResult>(Func<T, bool> pattern, Func<T, TResult> result)

Type Parameters

Name Description
TResult

Parameters

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

Return Value

Type Description
PatternMatchSingle<T, TResult>