private static string GetLastPart(string name) { int index = name.LastIndexOf('.'); return index < 0 ? name : name.Substring(index+1); }