GetCustomAttributes(MemberInfo, bool) Method

Retrieves an array of the custom attributes applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member.
Namespace: Z.Reflection.Extensions
Assembly: Z.ExtensionMethods.WithNamespace.dll

Syntax

public static Attribute[] GetCustomAttributes(this MemberInfo element, bool inherit)

Parameters

element
Type:  MemberInfo
An object derived from the class that describes a constructor, event, field, method, or property member of a class.
inherit
Type:  Boolean
If true, specifies to also search the ancestors of for custom attributes.

Return Value

Type:  Attribute[]
Powered by ZZZ Projects .NET Documentation Generator 0.0.2 (Alpha)