Patrick Steele's .NET Blog

Implements ICodeWithDotNet

  • More VS.NET 2005 Goodness!

    I was reviewing some code I had ported from VS2003 today.  The project was using visual inheritence in a windows forms enviroment.  At one point (back when it was in 2003) I had marked the class abstract since, well, it was abstract.  Unfortunately, I could no longer use the VS2003 forms designer to edit the form -- since the class was abstract, the IDE couldn't create an instance of it.  At that time, I just added some comments to the code that the class should not be instantiated directly and that it wasn't marked abstract simply because of the VS.NET 2003 IDE.

  • Documenting .NET 2.0 Assemblies

    I've been spending some time today documenting my code.  I'm using .NET's built-in XML comments and an alpha build of nDoc 2.0 that supports .NET 2.0 assemlies.  So far, it's been going pretty smoothly (for an alpha).  It seems quite stable and I haven't run into any show stoppers.

  • Tip: Temporarily Disable Snaplines

    The .NET 2.0 Forms Designer has an awesome new feature called Snaplines.  Snaplines show visual cues to help you line up controls on a form.  They make it very easy to conform to the Windows User Interface Guidelines.

  • To Enum or not to Enum...

    I'm using a library that accepts an integer as a parameter.  The value for the integer is really arbitrary -- it's a utility library and the consumers of the library decide what they want this integer value to represent.