コード例 #1
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;
        }
コード例 #2
0
 public static void Destroy(this ISymUnmanagedDispose instance)
 {
     instance.__Destroy();
 }