示例#1
0
            private CompoundQuery(BooleanBinOp junctor, Query component, bool negated = false)
            {
                if (component == null)
                {
                    throw new ArgumentNullException(nameof(component));
                }

                Junctor    = junctor;
                Components = new List <Query>();
                Negated    = negated;

                Components.Add(component);
            }
示例#2
0
 private CompoundQuery(BooleanBinOp junctor, IEnumerable <Query> components, bool negated = false)
 {
     Junctor    = junctor;
     Components = components?.ToList() ?? throw new ArgumentNullException(nameof(components));
     Negated    = negated;
 }