Monday, November 21

ObsoleteAttribute

When changing code it's difficult to be sure there aren't any calls to functions that you are now replacing. Search and replace isn't always perfect, especially when new functions have the same name but different arguments.

You might not want to remove the old functions immediately. They might have worked well, and you might need to think about what you will need to test to minimise risks.

The [Obsolete] attribute is very useful so you can flag these as compiler warnings.

No comments: