示例#1
0
 public void Remove(RangeQueue q)
 {
     foreach (Range r in q.ranges)
     {
         Remove(r);
     }
 }
示例#2
0
 public void Add(RangeQueue q)
 {
     foreach (Range r in q.ranges)
     {
         Add(r);
     }
 }
示例#3
0
        public static RangeQueue Invert(Range space, RangeQueue q)
        {
            RangeQueue ret = new RangeQueue();

            ret.Add(space);
            foreach (Range r in q.ranges)
            {
                ret.Remove(r);
            }
            return(ret);
        }