2
Shouts

How to mark a method as Obsolete or Deprecated in C# ?

published 834 days, 10 hours, 50 minutes ago posted by http://isenthil.myopenid.com/http://isenthil.myopenid.com/ 835 days, 20 hours, 1 minute ago
Wednesday, February 09, 2011 12:03:31 AM GMT Monday, February 07, 2011 2:53:08 PM GMT

How can you mark a function or a method as deprecated in c# ? . You can do it in c# using the obsolete attribute . For Example :public class Employee {

    public string Name { get; set; }

    public void SetEmployeeName(string name)
    {
        Name = name;

    }

}

If you need to mark the method SetEmployeeName as deprecated , then ..

category: How To | clicked: 1 | | source: www.ginktage.com | show counter code
tags: C#, Visual Studio

No comments yet, be the first one to post comment.

To post your comment please login or signup