Examples from Chapter 14 (Attributes) of Programming C# 8.0 (O'Reilly).
- Example 1. Attributes in a unit test class
- Example 2. Attribute with constructor argument
- Example 3. Specifying optional attribute settings with properties
- Example 4. Assembly-level attributes
- Example 5. Module-level attribute
- Example 6. Method and return value attributes
- Example 7. Attribute for compiler-generated property and event fields
- Example 8. A typical generated file with assembly-level attributes
- Example 9. Version attributes
- Example 10. Typical assembly description attributes
- Example 11. Applying caller info attributes to method parameters
- Example 12. INotifyPropertyChanged
- Example 13. A reusable INotifyPropertyChanged implementation
- Example 14. Raising a property changed event
- Example 15. InternalsVisibleToAttribute
- Example 16. Interop attributes