Answers

Question and Answer:

  Home  C# (Sharp) Programming Language

⟩ How do you mark a method obsolete?

[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 always capitalized.

 201 views

More Questions for you: