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.

Showing Answers 1 - 1 of 1 Answers

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions