Пример #1
0
        public static T Regex <T, NothingOrPrepared>(this MatchCollector <T, string, NothingOrPrepared> that,
                                                     string expected,
                                                     Action result)
        {
            var regex = new Regex(expected);

            return(that.Regex(regex, result));
        }
Пример #2
0
        public static T Regex <T, Out>(this MatchCollector <T, string, Out> that,
                                       string expected,
                                       Func <Out> result)
        {
            var regex = new Regex(expected);

            return(that.Regex(regex, result));
        }
Пример #3
0
        public static T Regex <T, Out>(this MatchCollector <T, string, Out> that,
                                       string expected,
                                       RegexOptions options,
                                       Out result)
        {
            var regex = new Regex(expected, options);

            return(that.Regex(regex, result));
        }