static internal string GetName(string configPath) {
Debug.Assert(String.IsNullOrEmpty(configPath) || IsValid(configPath), "String.IsNullOrEmpty(configPath) || IsValid(configPath)");
if (String.IsNullOrEmpty(configPath)) {
return configPath;
}
int index = configPath.LastIndexOf('/');
if (index == -1) {
return configPath;
}
Debug.Assert(index != configPath.Length - 1);
return configPath.Substring(index + 1);
}