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); }
private CompoundQuery(BooleanBinOp junctor, IEnumerable <Query> components, bool negated = false) { Junctor = junctor; Components = components?.ToList() ?? throw new ArgumentNullException(nameof(components)); Negated = negated; }