protected virtual void Dispose(bool disposing) { if (disposing) { _workspace?.Dispose(); } }
public void Dispose() { _csharpWorkspace?.Dispose(); if (_csharpWorkspaceDocument != null) { _csharpWorkspaceDocument = null; } }
public void Dispose() { // This also closes all documents workspace?.Dispose(); foreach (var doc in documents) { doc.Dispose(); } documents.Clear(); }
public void Dispose() { if (isDisposed) { return; } isDisposed = true; if (workspace != null) { workspace.WorkspaceChanged -= Workspace_WorkspaceChanged; // This also closes all documents workspace.Dispose(); } foreach (var doc in documents) { doc.Dispose(); } documents.Clear(); }
public void Dispose() => workspace?.Dispose();
public void Dispose() { workspace.Dispose(); }
public static void Cleanup() { workspace?.Dispose(); }