TYPE

CustomAttributeData

Exposes declared attribute metadata without constructing attribute instances.

Formal Syntax & Structure

csharp syntaxcsharp
CustomAttributeData.GetCustomAttributes(MemberInfo target)

Working Example

Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.CustomAttributeData.GetCustomAttributes(typeof(StockItem))
C# & .NET Reference