10.2.1.The Obsolete Attribute |
|
- The Obsolete attribute is short for System.ObsoleteAttribute
- The Obsolete attribute lets you mark a program element as obsolete.
|
It has this general form: |
|
A second form of Obsolete is shown here: |
[Obsolete("message", error)]
|
|
- error is a Boolean value.
- If error is true, then the obsolete item generates a compilation error rather than a warning.
|