コード例 #1
0
ファイル: SymWriter.cs プロジェクト: xsword911/Cosmos
        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
ファイル: SymReader.cs プロジェクト: pavel-zeman/nstack
        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
ファイル: SymbolWriter.cs プロジェクト: maresja1/SDenc
        /// <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;
        }
コード例 #4
0
 public static void Destroy(this ISymUnmanagedDispose instance)
 {
     instance.__Destroy();
 }