private string GetMappedName(string oldName) { if (oldName == null) { return(null); } string newName; if (!_log.TryGetNewName(oldName, out newName)) { newName = GenerateUniqueString(); _log.AddName(oldName, newName); } return(newName); }
private string GetMappedName(string oldName) { if (oldName == null) { return(null); } string newName; if (!_log.TryGetNewName(oldName, out newName)) { //newName = GenerateUniqueString(); newName = oldName.Replace('.', '_') + "_" + _random.NextString(5); //newName = oldName.Replace('.', '_') + "_NPA"; _log.AddName(oldName, newName); } return(newName); }