public Matching <T, TResult> IfFailedMatch(Func <Exception, TResult> ifFailedMatch) { if (matched.IsFailedMatch) { action = LambdaFunctions.func(() => ifFailedMatch(matched.Exception)).Some(); } return(this); }
public Matching <T, TResult> IfMatched(Func <T, TResult> ifMatched) { if (matched.If(out var value)) { action = LambdaFunctions.func(() => ifMatched(value)).Some(); } return(this); }