Exemple #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);
        }
Exemple #2
0
 public bool Remove(IntervalValuePair <TBound, TValue> item)
 {
     throw new NotImplementedException();
 }
Exemple #3
0
 public bool Contains(IntervalValuePair <TBound, TValue> item)
 {
     return(intervalValuePairs.Contains(item));
 }