Browse by Tags

All Tags » Design Guidelines (RSS)

Array, Collection, IEnumerable<T> Usage Guidelines

Please read this first: About Dave’s ‘unofficial’ Framework Design Guidelines . þ DO treat a null reference ( Nothing in Visual Basic and nullptr in C++/CLI) and an empty collection or IEnumerable<T> as equivalent. For example, the following constructor...

Framework Design Guidelines - 2nd Edition Released

In case you missed it, the second edition of the Framework Design Guidelines has been released . This time around I had the great opportunity to contribute and update the FxCop section at the back of the book. The original edition was a great book, and...
Posted by David Kean | 1 comment(s)
Filed under: ,

String Usage Guidelines

Please read this first: About Dave’s ‘unofficial’ Framework Design Guidelines . ý DO NOT return a null reference ( Nothing in Visual Basic and nullptr in C++/CLI) from a string property; return an empty string instead. Users of...
Posted by David Kean | 10 comment(s)
Filed under:

ArgumentException Throwing Guidelines

Please read this first: About Dave’s ‘unofficial’ Framework Design Guidelines . þ DO throw ArgumentException or one of its subtypes for preventable errors. For example, passing a null reference ( Nothing in Visual Basic, nullptr...
Posted by David Kean | 4 comment(s)
Filed under:

Framework Design Guidelines - 2nd Edition

I just noticed that you can now pre-order the second edition of the Framework Design Guidelines. If you haven’t picked up the first edition, then I definitely recommend you grab the second edition. Congratulations to both of my colleagues, Krzysztof...
Posted by David Kean | 1 comment(s)
Filed under: