DiscriminatedPatternMatch<T, TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8>.

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

Syntax

public DiscriminatedPatternMatch<T, TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9> With<TResult9>(Func<T, bool> pattern, Func<T, TResult9> resultFunction)

Type Parameters

Name Description
TResult9

Parameters

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

Return Value

Type Description
DiscriminatedPatternMatch<T, TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7, TResult8, TResult9>