lyon-smith.org

The Lyon-Smith family web site.
Welcome to lyon-smith.org Sign in | Join | Help
in Search

Browse by Tags

All Tags » coding
  • Correct Comparisons for files and paths in .NET

    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.
    Posted to code-o-rama (Weblog) by john on February 1, 2008
  • Dynamic Code Generation in .NET

    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. First I'll describe the scenario of the problem I was trying to solve ...
    Posted to code-o-rama (Weblog) by john on January 5, 2008
  • More .NET Custom Configuration Madness

    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'' ?> <configuration> <startup> <supportedRuntime ...
    Posted to code-o-rama (Weblog) by john on December 9, 2007
  • Outlook macros for processing e-mail

    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: I use Outlook rules to filter out e-mail that is sent to most of ...
    Posted to code-o-rama (Weblog) by john on July 24, 2007
  • Getting accurate per thread timing on Windows

    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 of code under Windows.  Ah, you sense some mischievousness in my tone.  ...
    Posted to code-o-rama (Weblog) by john on July 17, 2007
  • Reading Custom Configuration Sections in .NET 2.0

    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 Tim Murphy for providing about the only decent blog on this subject. First ...
    Posted to code-o-rama (Weblog) by john on March 22, 2007
Powered by Community Server, by Telligent Systems