I found the question Obsolete vs. Deprecated HTML, but not one about C#. How can I choose DeprecatedAttribute
and ObsoleteAttribute
in C#?
I just found there is a solution in documented on MSDN ObsoleteAttribute.
[Obsolete("This class is obsolete; Use the new one instead")]
class OBClass
{
public void OBMethod() { }
}