コード例 #1
0
        public static ILeoValueRuleBuilder <T, TVal> Matches <T, TVal>(this ILeoValueRuleBuilder <T, TVal> builder, Expression <Func <T, string> > expression, RegexOptions options)
        {
            var current         = builder._impl();
            var regexExpression = PropertyValueGetter.Get(expression, current.CorrespondingInstance);

            return(builder.Matches(regexExpression, options));
        }