mark a file as deprecated in visual studio 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()
{ … }