Beispiel #1
0
 public void Clear()
 {
     CheckReadOnly("Clear");
     m_count = 0;
     if (m_array != null)
     {
         m_array.Free();
         m_array = null;
     }
     if (m_buckets != null)
     {
         int count = m_buckets.Count;
         for (int i = 0; i < count; i++)
         {
             m_buckets[i].Free();
         }
         m_buckets.Clear();
     }
     m_buckets  = null;
     m_capacity = 0;
     m_version++;
 }