// 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); }
// 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); }