Table of Contents

HasTypes Method

Definition

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

HasTypes(Type, params Type[])

Determines whether the specified type type contains one or more of the specified target types.

public static bool HasTypes(this Type type, params Type[] targets)

Parameters

type Type

The Type to extend.

targets Type[]

The target types to be matched against.

Returns

bool

true if the type contains one or more of the specified target types; otherwise, false.

Exceptions

ArgumentNullException

type cannot be null -or- targets cannot be null.