Measure progress in recursive search
问题 I have a recursive search, which searches for files with a specified name in a whole directory. This needs quite some time and I want to show a progressbar, which shows atleast some progress (I don't care if the progress is just measured by the number of files or directory or the actual size of them). Following (recursive code) performs the search: private void searchFolder(PortableDeviceFolder parent, ref List<PortableDeviceFolder> result, string filename) { foreach (var item in parent.Files