c# loop through directory folders code example
Example 1: c# loop through files in folder
string[] files = Directory.GetFiles(txtFolderPath.Text, "*ProfileHandler.cs");
Example 2: c# directories loop
root.GetDirectories("*.*", System.IO.SearchOption.AllDirectories);