protected virtual bool ApplyRenames(Config4Impl config) { bool renamed = false; IEnumerator i = config.Rename().GetEnumerator(); while (i.MoveNext()) { Rename ren = (Rename)i.Current; if (AlreadyApplied(ren)) { continue; } if (ApplyRename(ren)) { renamed = true; } } return renamed; }
internal virtual void Rename(Config4Impl config) { bool renamedOne = false; if (config.Rename() != null) { renamedOne = ApplyRenames(config); } _classCollection.CheckChanges(); if (renamedOne) { Reboot(); } }