A code snippet for Visual Studio 2005 that implements a skeleton value type adhering to Framework Design Guidelines

I was reading Krzysztof Cwalina and  Brad Abrams’ book Framework Design Guidelines : Conventions, Idioms, and Patterns for Reusable .NET Libraries (Guidelines) the other day.  I was reading through the value type design guidelines and thought I should review some of the code I was currently working on to make sure my value types were complete. My value types had no violations, but I did make note of a few things.  First, usually each types requisite methods were in a different order from all the others and usually interspersed between other methods, making it hard to validate to any particular … Continue reading A code snippet for Visual Studio 2005 that implements a skeleton value type adhering to Framework Design Guidelines

Sortable Value Type Code Snippet

I was reading Krzysztof Cwalina and  Brad Abrams’ book Framework Design Guidelines : Conventions, Idioms, and Patterns for Reusable .NET Libraries (Guidelines) the other day.  I was reading through the value type design guidelines and thought I should review some of the code I was currently working on to make sure my value types were complete. My value types had no violations, but I did make note of a few things.  First, usually each of my type’s requisite methods were in a different order from all the others and usually interspersed between other methods; making it hard to validate to … Continue reading Sortable Value Type Code Snippet