Deprecated methods in C#
A deprecated method is a method that is no more supported. For example, you wrote an API with a function that saves something on the disk but in the future versions of your program you want to support only Database saves. In this case you can deprecate the method that saves to disk for a lot of versions: the programmers are now warned from the compiler every time they use the function, and have the time to migrate the code.

If you want to deprecate a method in c#, you can simply add the Obsolete attribute in the function.
[Obsolete("This is a deprecated method.")]
public void DeprecatedMethod()
{
MessageBox.Show(”I’m a deprevated method! XD”);
}





