The Obsolete
attribute, and a few other things I've seen are able to have custom warnings or messages show in the Visual Studio IDE Error window. Is this possible with a custom attribute, preprocessor directive in C# or something else?
using Reflector to look at the Obsolete attribute didn't have any clues.