2
Reply

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

Murali Poola

Murali Poola

13y
5.2k
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;}