示例#1
0
        public static string CreateXPathCondition(object value, TermOptions termOptions = null, string operand = ".")
        {
            string[]  terms = GetTerms(value, termOptions);
            TermMatch match = GetMatch(value, termOptions);

            return(match.CreateXPathCondition(terms, operand));
        }
示例#2
0
        public static string CreateXPathCondition(this TermMatch match, string[] values, string operand = ".")
        {
            values.CheckNotNull(nameof(values));
            operand.CheckNotNull(nameof(operand));

            return(string.Join(" or ", values.Select(x => match.CreateXPathCondition(x, operand))));
        }