예제 #1
0
        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;
        }
예제 #2
0
 public FilterJunction(FilterJunctionType junctionType, params FilterNode[] operands)
     : this(junctionType, operands?.ToList())
 {
 }