Check out example codes for "c# mark as deprecated". It will help you in understanding the concepts better.

Code Example 1

[Obsolete("Method1 is deprecated, please use Method2 instead.")]
public void Method1()
{ … }

Learn ReactJs, React Native from akashmittal.com