How do you mark a method obsolete?

Submitted by: Administrator
[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.
Submitted by: Administrator

Read Online C# (Sharp) Programming Language Job Interview Questions And Answers