Пример #1
0
 void ClearChgQueue()
 {
     while (m_ChgQueue != null)
     {
         var next = m_ChgQueue.NextNode;
         m_ChgQueue.Dispose();
         m_ChgQueue = next;
     }
 }
Пример #2
0
 private static void ClearVisibleQueue(ref VisibleNode root)
 {
     if (root == null)
     {
         return;
     }
     while (root != null)
     {
         VisibleNode nextNode = root.NextNode;
         root.Dispose();
         root = nextNode;
     }
     root = null;
 }