[Solved] get tree structure of a directory with its subfolders and files using C#.net in windows application [closed]

Method 1 HierarchicalItem holds the information we need about an item in the folder. An item can be a folder or file. class HierarchicalItem { public string Name; public int Deepth; public HierarchicalItem(string name, int deepth) { this.Name = name; this.Deepth = deepth; } } SearchDirectory is the recursive function to convert and flatten the … Read more