HasAttribute Method
Definition
- Namespace
- Cuemon
- Assemblies
- Cuemon.Core.dll
HasAttribute(IDecorator<Type>, params Type[])
Determines whether the underlying Type of the decorator implements one or more of the specified attributeTypes.
public static bool HasAttribute(this IDecorator<Type> decorator, params Type[] attributeTypes)
Parameters
decoratorIDecorator<Type>The IDecorator<T> to extend.
attributeTypesType[]The attribute types to be matched against.
Returns
- bool
trueif the underlying Type of thedecoratorimplements one or more of the specifiedattributeTypes; otherwise,false.
Exceptions
- ArgumentNullException
decoratorcannot be null -or-attributeTypescannot be null.