Table of Contents

HasInterfaces Method

Definition

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

HasInterfaces(Type, params Type[])

Determines whether the specified type contains one or more of the target interfaces specified throughout this member's inheritance chain.

public static bool HasInterfaces(this Type type, params Type[] interfaceTypes)

Parameters

type Type

The Type to extend.

interfaceTypes Type[]

The target interface types to be matched against.

Returns

bool

true if the specified type contains one or more of the target types specified throughout this member's inheritance chain; otherwise, false.

Exceptions

ArgumentNullException

type cannot be null -or- interfaceTypes cannot be null.