示例#1
0
        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);
        }
示例#2
0
 public bool IsValidValue(int value)
 {
     return(Ranges.Any(x => x.FallsWithin(value)));
 }