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); }
public IValueSet Union(IValueSet other) { AllOrNoneValueSet OtherValueSet = this.CheckCompatibility(other); return(new AllOrNoneValueSet(this.Type, this._All || OtherValueSet._All)); }
public static IValueSet All(IType type) { return(AllOrNoneValueSet.All(type)); }
public IValueSet Intersect(IValueSet other) { AllOrNoneValueSet OtherValueSet = this.CheckCompatibility(other); return(new AllOrNoneValueSet(this.Type, this._All && OtherValueSet._All)); }
public static IValueSet None(IType type) { return(AllOrNoneValueSet.None(type)); }