private void CheckDisposed() { // check if disposed if (m_disposed) { // object disposed, throw exception throw new ObjectDisposedException(""); } }