Table of Contents

HasInterfaces Method

Definition

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

HasInterfaces(IDecorator<Type>, params Type[])

Determines whether the underlying Type of the decorator implements one or more of the specified interfaceTypes.

public static bool HasInterfaces(this IDecorator<Type> decorator, params Type[] interfaceTypes)

Parameters

decorator IDecorator<Type>

The IDecorator<T> to extend.

interfaceTypes Type[]

The interface types to be matched against.

Returns

bool

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

Exceptions

ArgumentNullException

decorator cannot be null -or- interfaceTypes cannot be null.