Method HasCustomAttribute
HasCustomAttribute(ICustomAttributeProvider, string)
Determine if an attribute provider has got a specific custom attribute.
public static bool HasCustomAttribute(this ICustomAttributeProvider cap, string attribute)
Parameters
cap
ICustomAttributeProvider- The attribute provider.
attribute
string- The custom attribute name.
Returns
- bool
- true if the attribute provider contains the given custom attribute, false otherwise.