PatternMatchContext<T>.

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

Syntax

public PatternMatchAction<T> With(Func<T, bool> pattern, Action<T> callback)

Parameters

Name Type Description
pattern Func<T, bool>
callback Action<T>

Return Value

Type Description
PatternMatchAction<T>