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

            return(this);
        }
예제 #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);
        }