private void RemoveFromSlot(ref IntervalCollection slot, Interval interval) { if (slot != null) { slot.Remove(interval); if (!slot.HasIntervals) { slot = null; } } }
void RemoveFromSlot(ref IntervalCollection slot, Interval interval) { if (null != slot) { slot.Remove(interval); if (!slot.HasIntervals) { slot = null; } } }