Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: bool IsDefined<T>(this MemberInfo, bool)

Declaration

public static bool IsDefined<T>(
    this MemberInfo member,
    bool inherit = false
)

Summary

Indicates whether one or more instance of the specified attribute type is applied to this member.

Generic type parameters

T The type of attribute to search for.

Parameters

this MemberInfomember Member whose custom attributes to search.
boolinherit Specifies whether to search this member's inheritance chain to find the attributes.