示例#1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }

            if (obj == null || this.GetType() != obj.GetType())
            {
                return(false);
            }

            AllOrNoneValueSet Other = (AllOrNoneValueSet)obj;

            return(Object.Equals(this.Type, Other.Type) &&
                   this._All == Other._All);
        }
示例#2
0
        public IValueSet Union(IValueSet other)
        {
            AllOrNoneValueSet OtherValueSet = this.CheckCompatibility(other);

            return(new AllOrNoneValueSet(this.Type, this._All || OtherValueSet._All));
        }
示例#3
0
 public static IValueSet All(IType type)
 {
     return(AllOrNoneValueSet.All(type));
 }
示例#4
0
        public IValueSet Intersect(IValueSet other)
        {
            AllOrNoneValueSet OtherValueSet = this.CheckCompatibility(other);

            return(new AllOrNoneValueSet(this.Type, this._All && OtherValueSet._All));
        }
示例#5
0
 public static IValueSet None(IType type)
 {
     return(AllOrNoneValueSet.None(type));
 }