IsDefined(MemberInfo, Type, bool) Method

Determines whether any custom attributes are 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 bool IsDefined(this MemberInfo element, Type attributeType, bool inherit)

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.
inherit
Type:  Boolean
If true, specifies to also search the ancestors of for custom attributes.

Return Value

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