예제 #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));
 }