示例#1
0
        public void Add(IntervalValuePair <TBound, TValue> item)
        {
            if (intervalValuePairs.Any(pair => pair.Interval.Intersects(item.Interval)))
            {
                throw new ArgumentException("An element with the same interval already exists.");
            }

            intervalValuePairs.Add(item);
        }
示例#2
0
 public bool Remove(IntervalValuePair <TBound, TValue> item)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public bool Contains(IntervalValuePair <TBound, TValue> item)
 {
     return(intervalValuePairs.Contains(item));
 }