protected override void Run(RefactoringOptions options) { RemoveUnusedImportsRefactoring removeUnusedImportsRefactoring = new RemoveUnusedImportsRefactoring(); if (removeUnusedImportsRefactoring.IsValid(options)) { removeUnusedImportsRefactoring.Run(options); } }
protected override void Run (RefactoringOptions options) { RemoveUnusedImportsRefactoring removeUnusedImportsRefactoring = new RemoveUnusedImportsRefactoring (); SortImportsRefactoring sortImportsRefactoring = new SortImportsRefactoring (); if (removeUnusedImportsRefactoring.IsValid (options) && sortImportsRefactoring.IsValid (options)) { sortImportsRefactoring.Run (options); removeUnusedImportsRefactoring.Run (options); } }