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 ..
No comments yet, be the first one to post comment.