private void MoveStackToQueue()
 {
     while (StackedStack.Count > 0)
     {
         QueuedStack.Push(StackedStack.Pop());
     }
 }
Exemple #2
0
 /// <summary>Initialize the iterator.</summary>
 protected void Reset()
 {
     stack.Clear();
     stack.Push(new DirNode(new DirectoryInfo[] { new DirectoryInfo(RootPath) }, -1));
 }