Esempio n. 1
0
        private void ApplyChanges(Document oldDocument, Document newDocument)
        {
            oldDocument.ThrowOnNull(nameof(oldDocument));
            newDocument.ThrowOnNull(nameof(newDocument));

            Workspace workspace   = oldDocument.Project?.Solution?.Workspace;
            Solution  newSolution = newDocument.Project?.Solution;

            if (workspace != null && newSolution != null)
            {
                workspace.TryApplyChanges(newSolution);
            }
        }