HasInterfaces Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
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
typeTypeThe Type to extend.
interfaceTypesType[]The target interface types to be matched against.
Returns
- bool
trueif the specifiedtypecontains one or more of the target types specified throughout this member's inheritance chain; otherwise,false.
Exceptions
- ArgumentNullException
typecannot be null -or-interfaceTypescannot be null.