Friday, May 11, 2007

Utilise the Obsolete Attribute

Rather than just commenting out code that is deprecated, use the Obsolete Attribute to decorate types and members of types that are obsolete and will cause compiler warnings to be generated if that type or member is used. It’s a great way to make developers aware that a particular object is changing, and the functionality they are using will be disappearing in a future release.

No comments: