Пример #1
0
        public void Dispose()
        {
            // If the underlying symbol API supports the Destroy method, then call it.
            ISymUnmanagedDispose disposer = m_target as ISymUnmanagedDispose;

            if (disposer != null)
            {
                disposer.Destroy();
            }
            m_target = null;
        }
Пример #2
0
        public void Dispose()
        {
            // Release our unmanaged resources
            // If the underlying symbol reader supports an explicit dispose interface to release it's resources,
            // then call it.
            ISymUnmanagedDispose disposer = m_reader as ISymUnmanagedDispose;

            if (disposer != null)
            {
                disposer.Destroy();
            }

            m_reader = null;
        }
Пример #3
0
        /// <summary>
        /// Destroys <c>mWriter</c> and <c>mReader</c> if possible.
        /// </summary>
        public void Dispose()
        {
            // If the underlying symbol API supports the Destroy method, then call it.
            ISymUnmanagedDispose disposer = mWriter as ISymUnmanagedDispose;

            if (disposer != null)
            {
                disposer.__Destroy();
            }
            disposer = mReader as ISymUnmanagedDispose;
            if (disposer != null)
            {
                disposer.__Destroy();
            }
            mWriter = null;
            mReader = null;
        }
 public static void Destroy(this ISymUnmanagedDispose instance)
 {
     instance.__Destroy();
 }