IsDefined(MemberInfo, Type) Method

Determines whether any custom attributes are 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

Syntax

public static bool IsDefined(this MemberInfo element, Type attributeType)

Parameters

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

Return Value

Type:  Boolean
Powered by ZZZ Projects .NET Documentation Generator 0.0.2 (Alpha)