/// <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(); }