Murali Poola
How to you specify that a method is obsolete in c#?
By Murali Poola in .NET on Apr 23 2012
  • rahul bhosale
    Dec, 2014 11

    Decorate the method with [Obsolete]

    • 0
  • Murali Poola
    Apr, 2012 23

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

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

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS