In addition to regular Custom Attributes, the Elements compiler provides support for the special, predefined attribute classes, resulting in specific code or data generated in the executable to adjust compiler behavior.
Obsolete works on all members and triggers a warning/error when this member gets used. Takes two optional parameters, a string containing the obsolete message and a boolean, which if set to true triggers an error instead of warning.
Takes a string parameter and triggers that as an error in any caller that uses this member.
Takes a string parameter and triggers that as a warning in any caller that uses this member.
If set on a method, any call to this method will only be emitted if this conditional define was set at the time of compilation.