GetCustomAttribute(MemberInfo, Type) Method

Retrieves a custom attribute 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 GetCustomAttribute(this MemberInfo element, Type attributeType)


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)