Assuming a Console app, and a directory tree rooted at "C:\TEST", you can do this:
string root = "C:\\Test";
var folders = Traversal(root, Directory.EnumerateDirectories);
foreach (var folder in folders)
Console.WriteLine(folder);
You could also try string root = "C:\\Program Files (x86)";
but you might get access exceptions with that.