TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shantanu
NA
6
0
Modifying obsolete attribute
Mar 21 2007 12:12 PM
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
Reply
Answers (
0
)
On Usage Of Attributes
Threading Problem