IT Placement Papers Microsoft Technologies C#
This category contains C# Interview Questions and Answers |
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.
Only registered users can write comments. Please login or register.
|