示例#1
0
 protected virtual void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         rbTree.Dispose();
         rbTree = null;
     }
 }
示例#2
0
        /// <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;
        }