public FilterJunction(FilterJunctionType junctionType, IReadOnlyList <FilterNode> operands) { Guard.NotNull(operands, nameof(operands)); Guard.GreaterEquals(operands.Count, 2, nameof(operands.Count)); Guard.Enum(junctionType, nameof(junctionType)); Operands = operands; JunctionType = junctionType; }
public FilterJunction(FilterJunctionType junctionType, params FilterNode[] operands) : this(junctionType, operands?.ToList()) { }