Essential C# Attributes  Suggest an edit

Obsolete Attribute

System.Obsolete is an attribute that is used to mark a type or a member that has a better version, and thus should not be used.

[Obsolete("This class is obsolete. Use SomeOtherClass instead.")]
class SomeClass
{
    //
}

In case the class above is used, the compiler will give the warning “This class is obsolete. Use SomeOtherClass instead.”


Table Of Contents
22 Enum
25 GUID
94 Attributes
107 Stream
108 Timers
  ↑ ↓ to navigate     ↵ to select     Esc to close