public void OnBeforeUnload() { if (_codeView != null) { _codeView.Dispose(); } }
public override void Dispose() { cancellation.Cancel(); codeView.Dispose(); BookmarkManager.Added -= BookmarkManager_Added; BookmarkManager.Removed -= BookmarkManager_Removed; if (decompiledType != null) { DecompileInformation data; DebuggerDecompilerService.DebugInformation.TryRemove(decompiledType.MetadataToken.ToInt32(), out data); data = null; } base.Dispose(); }