Interviews2 answers
How to you specify that a method is obsolete in c#?
2 Answers
Decorate the method with [Obsolete]
rahul bhosalePosted Dec 11, 2014, 2:34 AM EST
You can do it in c# using the obsolete attribute .
Ex:-
[ Obsolete ]
public void SetEmployeeName(string name)
{
Name = name;
}Murali PoolaPosted Apr 22, 2012, 11:52 PM EDT
