private void UpdateTypeReferencesInternal(FilteredTypes types, string oldName, string newName) { foreach (CodeTypeExtension ext in types) { CodeRefactoringAgent updater = new CodeRefactoringAgent(); updater.Refactor(ext, oldName, newName); } }