PatternMatchSingleContext<T>.

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

Syntax

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

Type Parameters

Name Description
TResult

Parameters

Name Type Description
valueToMatch T
result Func<T, TResult>

Return Value

Type Description
PatternMatchSingle<T, TResult>