コード例 #1
0
        protected GraphPredicateList(IEnumerable items) : base()
        {
            List <string> itemStrings = new List <string>();

            foreach (var item in items)
            {
                itemStrings.Add(GraphQuery.GetObjectString(item));
            }
            if (itemStrings.Count < 1)
            {
                throw new ArgumentException("Must have at least one item");
            }
            Predicate = Command + "(" + string.Join(", ", itemStrings) + ")";
        }
コード例 #2
0
 protected GraphPredicate(object lb, object up)
 {
     Predicate = Command + "(" + GraphQuery.GetObjectString(lb) + ", " + GraphQuery.GetObjectString(up) + ")";
 }
コード例 #3
0
 protected GraphPredicate(object item)
 {
     Predicate = Command + "(" + GraphQuery.GetObjectString(item) + ")";
 }