2
Reply

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

Murali Poola

Murali Poola

Apr 23, 2012
2.9k
0

    Decorate the method with [Obsolete]

    rahul bhosale
    December 11, 2014
    0

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

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

    Murali Poola
    April 23, 2012
    0