public void UpdateNewName(IEntitySearcher searcher) { nameNew.UpdateGenericParams(searcher); if (nameNew.Namespace == null) { return; } // some optimization if (nameNew.Namespace.StartsWith("System") && !searcher.HaveSystemEntities) { return; } if (!nameNew.Compare(nameOld, false)) { return; } RenamedBase r = searcher.SearchForOldName(nameNew); if (r != null) { nameNew.AssignName(r.NameNew); } }