◆ GetAttributeOfType()

static Attribute GetAttributeOfType ( this MemberInfo  memberInfo,
Type  attributeType 
)
static
Parameters
memberInfo
attributeType
Returns
null if no attributes of the specified type are found on the memberInfo. If one or more is found, the first is returned.