Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }