obsolete class c# code example
Example 1: c# mark as deprecated
[Obsolete("Method1 is deprecated, please use Method2 instead.")]
public void Method1()
{ … }
Example 2: visual studio c# mark class deprecated
[Obsolete("This class should not be used anymore!", true)]
public class MyObsoleteClass
{
...
}