Table of Contents

HasTypes Method

Definition

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

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

Determines whether the enclosed Type of the decorator contains one or more of the specified types.

public static bool HasTypes(this IDecorator<Type> decorator, params Type[] types)

Parameters

decorator IDecorator<Type>

The IDecorator<T> to extend.

types Type[]

The types to be matched against.

Returns

bool

true if the enclosed Type of the decorator contains one or more of the specified types; otherwise, false.

Exceptions

ArgumentNullException

decorator cannot be null -or- types cannot be null.