data annotations c# obsolete class code example
Example: c# mark as deprecated
[Obsolete("Method1 is deprecated, please use Method2 instead.")]
public void Method1()
{ … }
[Obsolete("Method1 is deprecated, please use Method2 instead.")]
public void Method1()
{ … }