deprecating a class or method

liptonIcedTea

Well-known member
Joined
Jan 18, 2007
Messages
89
Programming Experience
1-3
Hi,

just wondering if anyone has any experience...

I have a few classes that I no longer want to use, and i want a warning label to show up when a developer tries to refer to it.

Is there an attribute or something in .NET to show that a class or method has been deprecated?

Thanks
 
ObsoleteAttribute - usage will be marked in code editor and give a compiler warning.

You can also use code documentation comments to give other messages in code editor, intellisense will display the summary and parameter comments. Insert standard comment structure by writing ''' before a class or method. (that is three ' chars)
 
Back
Top