.NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library
by Brad Abrams
Description
[Note: Custom attributes may be applied to various application (“target”) elements, such as classes, parameters, and structures (see System.AttributeTargets for the full list). The System.AttributeUsageAttribute class contains three properties that govern custom attribute behavior: the kinds of application elements the attribute may be associated with; whether the attribute may or may not be inherited by derived elements; and whether multiple instances of the attribute may or may not be allowed on the same target element.]
|
BA Notice that this custom attribute is sealed. In general I am not a big fan of randomly sealing classes to prevent extensibility. (I prefer non-virtual methods for that purpose.) However, for custom attributes ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access