All categories

Posts in “.Net”

Get rid of some recursion

Sat, May 10, 2008
I just had a doh! moment. In .Net the System.IO.Directory object has a GetFiles method that returns all files from a directory. I used to pair that up with some recursion to get all files from all sub directories. BUT, heres the doh!: GetFiles has an overload that takes a SearchOptions parameter so that it can return the sub files directly. So go back to your old unnecessary recursive code and do it the .

Application launcher

Wed, Dec 5, 2007
I’m inventing a wheel today. My current project needs to update itself over the Internet but I don’t want to have a Click Once install. The launcher will incorporate the licensing scheme I created for jsiPodFetch and most of the updating functionality from jsiPodFetch and logview4net. The launcher might be installed via Click Once, but I think it will need a little to much privileges to run in the sandbox.