/// <exception cref="ArgumentNullException"><paramref name="values"/> is <see langword="null" />.</exception>
        public IntegerListFilterCondition(IntegerAttributes attribute, ListOperation operation, [NotNull] IEnumerable <int?> values)
        {
            if (values == null)
            {
                throw new ArgumentNullException(nameof(values));
            }

            _Attribute = attribute;
            _Operation = operation;
            _Values    = new List <int?>(values);
        }
Exemplo n.º 2
0
        public static string GetAttributeName(IntegerAttributes attribute)
        {
            switch (attribute)
            {
            case IntegerAttributes.Length:
                return(AttrLength);

            default:
                throw new ArgumentOutOfRangeException(nameof(attribute), attribute, "Unknown enumeration value.");
            }
        }
Exemplo n.º 3
0
 public IntegerCompareFilterCondition(IntegerAttributes attribute, CompareOperation operation, int?value)
 {
     _Attribute = attribute;
     _Operation = operation;
     _Value     = value;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IntegerConditionGenerator"/> class.
 /// </summary>
 public IntegerConditionGenerator(IntegerAttributes integerAttribute)
 {
     _IntegerAttribute = integerAttribute;
 }