Recursive search examples, pt1: C#

In light of my recent article on recls 100% .NET, I thought I'd do some bits on the recls library: the C/C++ version, and the new .NET version.

First up, let's write a utility that, say, reports the number of C# source files in/under the current directory, excluding the ubiquitous Properties/AssemblyInfo.cs, and reports on the total size of all. We'll write it in C# using recls 100%.NET and in C & C++ using recls. As you'll see, we see a pretty obvious difference in development effort, which probably isn't a surprise. What is a surprise, given the application domain, is there's a substantial performance difference, which I think might be due to the .NET runtime.



November 20, 2009
URL:http://www.drdobbs.com/windows/recursive-search-examples-pt1-c/228701244

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.