HasAttributes Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
HasAttributes(Type, params Type[])
Determines whether the specified type contains one or more of the specified attributeTypes.
public static bool HasAttributes(this Type type, params Type[] attributeTypes)
Parameters
typeTypeThe Type to extend.
attributeTypesType[]The attribute target types to be matched against.
Returns
- bool
trueif the specifiedtypecontains one or more of the specifiedattributeTypes; otherwise,false.
Exceptions
- ArgumentNullException
typecannot be null -or-attributeTypescannot be null.