// Unary Operators

        public PossibleValueSet Not()
        {
            DetermineBoolType();

            var result = new PossibleValueSet(ExpressionType);

            result.ContainsNull = ContainsNull;
            result.DistinctValues.AddRange(DistinctValues.Cast <bool>().Select(v => !v).Cast <object>());
            return(result);
        }
Beispiel #2
0
        // Unary Operators

        public PossibleValueSet Not()
        {
            CheckType <bool>();

            PossibleValueSet result = new PossibleValueSet(typeof(bool));

            result.ContainsNull = ContainsNull;
            result.DistinctValues.AddRange(DistinctValues.Cast <bool>().Select(v => !v).Cast <object>());
            return(result);
        }