Browse by Tags

Correct Comparisons for files and paths in .NET
01 February 08 12:36 PM | john | 0 Comments   
So exactly how should you compare file and path names in .NET programs? Ordinal case insensitive comparisons are the correct approach according to this MSDN article . Read More...
Filed under: , , ,
Dynamic Code Generation in .NET
05 January 08 03:08 PM | john | 0 Comments   
I recently had the need/desire to dynamically generate some code in .NET. It's not something you tend to do a lot unless you are creating a compiler, so it was an interesting experience. In the end it didn't solve my problem, but it was educational none-the-less. Read More...
More .NET Custom Configuration Madness
09 December 07 04:46 PM | john | 0 Comments   
I have to blog about this before I do anything else. I just found out that if you specify a configSection in your .exe.config file it must come as the first element in the configuration section! I had done this: <? xml version ="1.0" encoding ="utf-8" Read More...
Filed under: , , ,
Outlook macros for processing e-mail
24 July 07 05:48 PM | john | 0 Comments   
I don't write many Outlook macros primarily because I don't have time to learn the CDO document model. But once upon a time I wrote a couple of macros that have become invaluable to me ever since. Some background. I process my e-mail roughly like this: Read More...
Filed under: , , ,
Getting accurate per thread timing on Windows
17 July 07 05:04 PM | john | 2 Comments   
If you need to accurately time operations in Windows, you're usually directed to the QueryPerformanceCounter API. This API is also neatly wrapped in .NET under the Stopwatch class. Indeed, this is this is simplest way to get reasonably accurate timings Read More...
Reading Custom Configuration Sections in .NET 2.0
22 March 07 09:35 AM | john | 2 Comments   
I just spent an annoying amount of time figuring out how to do this because sadly our documentation is so bad. So I'm going to blog it quickly so that I at least have a record of what I did and hopefully someone else will find it useful. Thanks go to Read More...
Filed under: , , ,