/// <summary>
 /// Disposes all the resources used by the <see cref="Syncfusion.UI.Xaml.TreeGrid.TreeNodesEnumerator"/> class.
 /// </summary>
 /// <param name="isDisposing">Indicates whether the call is from Dispose method or from a finalizer.</param>
 protected virtual void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         Helper.Dispose();
         Helper         = null;
         this.current   = null;
         this.RootNodes = null;
     }
 }