Assuming you've done a "using System;": [Obsolete]
public int Foo() {...}
or [Obsolete("This is a message describing why this method is obsolete")]
Note: The O in Obsolete is capitalized.
sahu Profile Answers by sahu Questions by sahu Jan 6th, 2006 Ans:By using Obsolete Keyword
Profile Answers by sahu Questions by sahu
Ans:
By using Obsolete Keyword
If you think the above answer is not correct, Please select a reason and add your answer below.
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.
Disable Ad Blocker
Learn More
Login GeekInterview
Login
Create your GeekInterview account
Signup
Continue Reading after Disabling
Refresh
How do you mark a method obsolete?
Assuming you've done a "using System;": [Obsolete]
public int Foo() {...}
or [Obsolete("This is a message describing why this method is obsolete")]
public int Foo() {...}
Note: The O in Obsolete is capitalized.
Related Answered Questions
Related Open Questions