public virtual void Clear() { if (@readonly) { throw new InvalidOperationException("can't alter readonly IntervalSet"); } intervals.Clear(); }