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 » c#
Showing page 1 of 2 (12 total posts)
  • 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
  • VS Macro to insert TODO

    Here's another useful VS macro.  When I write code there are always weird edge cases that I think of while so I like to liberally sprinkle // TODO: comments around.  When you do this though you should always put in your alias and the date.  That way someone who comes across your comment knows who to ask for further details, or ...
    Posted to code-o-rama (Weblog) by john on May 4, 2007
  • Running MSBuild scripts programmatically

    I love msbuild.  Before it came along I was a big nant user, but now I'm an msbuild convert.  It's not perfect, but it sure is better than batch files.  It really, really needs embeddable code snippets, and a debugger but once it has those it will totally rock.  If you are writing a program that needs to run ''scripts'' ...
    Posted to code-o-rama (Weblog) by john on May 1, 2007
  • Reader Writer Lock in .NET 3.5

    I was directed to this really great blog by Joe Duffy on the new ReaderWriterLockSlim in .NET 3.5.  Vance also has a good blog too.
    Posted to code-o-rama (Weblog) by john on April 20, 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
  • Standalone Unit Test Programs

    In the project that I'm working on we wanted to have certain of our MSTest unit tests be available as standalone programs.  Various reasons for this include: It is useful for demos It's makes certain debugging scenarios a little easier, i.e. those where multiple VS instances are required. It avoids having to remember the mstest command ...
    Posted to code-o-rama (Weblog) by admin on December 29, 2006
  • Assembly Probing and Windows Installer

    Some platform features are like the stuff hiding under rocks at the seashore. No, I don't mean the one's that are slimey and stinky. I'm talking about the one's that are interesting but hard to spot. But, all you need to do is catch a glimpse of them and lift the rock... Sometime last year, I was reading a page in the MSDN documentation when a ...
    Posted to code-o-rama (Weblog) by john on January 9, 2006
  • Refactor NUnit Tests to MSTest

    If you have been using NUnit to write your unit tests, and you have access to Visual Studio 2005 Team System you'll want to consider upgrading your NUnit tests to the VS Unit Test Framework, which I'll call VSUnit for short. There is a walkthrough that you should read to get an idea of the VSUnit product features. I recently upgraded some old ...
    Posted to code-o-rama (Weblog) by john on January 3, 2006
  • Test Signing and Instrumentation

    Boy, I seem to spend all my time in the deep dark recesses of the CLR. OK, this post is a little bit out there; I hope someone finds it useful. There's a problem with doing instrumented profiling of applications in Visual Studio 2005 Team System that comes up when working with strongly named assemblies. The problem is quite simply that ...
    Posted to code-o-rama (Weblog) by john on December 30, 2005
1 2 Next >
Powered by Community Server, by Telligent Systems