Hi all - would like to write a custom attribute, which, when applied
to a constructor will make the compiler issue a warning.
Just like the Obsolete Attribute, but with a name of my choosing.
For e.g. instaed of generating message "This method is Obsolete", it should display a message "This method can not be called from here", because logically that method is not obsolete, but should not be called from that class.
Can't override the ObsoleteAttribute class - it's marked sealed.
Am I just stuck with [Obsolete]?
Any ideas very gratefully received.
Shantanu