protected override bool AddValueRange(RangeOfValues rov) { var addsRange = base.AddValueRange(rov); ConcatenateExistingRanges(); Ranges.RemoveWhere(rg => Limits.FiltersRange(rg.Start, rg.End)); SingleValues.RemoveWhere(sv => Ranges.Any(rg => rg.Filters(sv))); return(addsRange); }
public bool IsValidValue(int value) { return(Ranges.Any(x => x.FallsWithin(value))); }