Attributes provide a way of associating information with code in a declarative way. They can also provide a reusable element that can be applied to a variety of targets. Consider the [Obsolete] ...
A new "What's new in C# 11" post explains new features available in preview with the latest tooling bits: NET 6.0.200 SDK or Visual Studio 2022 v17.1. First on tap is generic attributes support, or ...