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

Code Example 1

[Obsolete("This class should not be used anymore!", true)]
public class MyObsoleteClass
{
    ...
}

Learn ReactJs, React Native from akashmittal.com