Exemplo n.º 1
0
        public Matching <T, TResult> IfFailedMatch(Func <Exception, TResult> ifFailedMatch)
        {
            if (matched.IsFailedMatch)
            {
                action = LambdaFunctions.func(() => ifFailedMatch(matched.Exception)).Some();
            }

            return(this);
        }
Exemplo n.º 2
0
        public Matching <T, TResult> IfMatched(Func <T, TResult> ifMatched)
        {
            if (matched.If(out var value))
            {
                action = LambdaFunctions.func(() => ifMatched(value)).Some();
            }

            return(this);
        }