public int IndexOf(UndoBlock item) { for (int i = 0; i < m_count; ++i) if (m_array[i] == (item)) return i; return - 1; }