2
Reply

How to you specify that a method is obsolete in c#?

Murali Poola

Murali Poola

12y
2.9k
0
Reply

    Decorate the method with [Obsolete]

    You can do it in c# using the obsolete attribute .

    Ex:- 
        [ Obsolete  ]public void SetEmployeeName(string name){Name = name;}