I have Directories(static) called America, India, Japan. Directory.GetDirectories method should work based on sequence order like Japan, America, India
Dictionary<int, string> dic = new Dictionary<int, string>();
dic.Add(1, "Japan");
dic.Add(2, "America");
dic.Add(3, "India");
foreach(var Country in Directory.GetDirectories("C://", "*",System.IO.SearchOption.TopDirectoryOnly)))
{
string countryName = new DirectoryInfo(Country).Name;
Console.Writeline(countryName);
}
// Output should be below
// Japan
// America
// India