PatternMatch<T, TResult>.

PatternMatch(IEnumerable<T>, Func<T, bool>, Func<T, TResult>) Constructor

Syntax

public PatternMatch(IEnumerable<T> values, Func<T, bool> pattern, Func<T, TResult> resultValue)

Parameters

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

Return Value

Type Description
void