Table of Contents

HasAttribute Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Extensions/TypeDecoratorExtensions.cs

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

decorator IDecorator<Type>

The IDecorator<T> to extend.

attributeTypes Type[]

The attribute types to be matched against.

Returns

bool

true if the underlying Type of the decorator implements one or more of the specified attributeTypes; otherwise, false.

Exceptions

ArgumentNullException

decorator cannot be null -or- attributeTypes cannot be null.