GetCustomAttributes(MemberInfo, Type) Method

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


public static Attribute[] GetCustomAttributes(this MemberInfo element, Type type)


Type:  MemberInfo
An object derived from the class that describes a constructor, event, field, method, or property member of a class.
Type:  Type
The type, or a base type, of the custom attribute to search for.

Return Value

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