4
Shouts

Use “Obsolete” attributes to indicate Obsolete Methods « Abhijit's World of .NET

posted by abhijitjanaabhijitjana 629 days, 16 hours, 58 minutes ago
Friday, September 03, 2010 2:51:13 PM GMT

In this post I have explained how you can use Obsolete attributes to mark some methods which are not no longer in used or may be remove in future release of the class. During the development cycle we may need to change the name or declaration of certain methods which may be using by some other developers. In this case if you changed the name or declaration of that method, application may crash in different point of times as it’s being used by other developer in the application. In this case you can use System.ObsoleteAttributes class to generate compiler warning and indicate the method as Obsolete.

category: ASP.NET | clicked: 0 | | source: abhijitjana.net | show counter code
tags: Beginners, Tips and Tricks, obsolete, Visual Search, how to