protected virtual void Dispose(bool isDisposing) { if (isDisposing) { rbTree.Dispose(); rbTree = null; } }
/// <summary> /// Constructs the class and initializes the internal tree. /// </summary> public DistanceRangeCounterCollection(double paddingDistance) { Count = 0; var startPos = new DistanceLineCounter(0, 0); rbTree = new DistanceLineCounterTree(startPos, false); this.paddingDistance = paddingDistance; }