ReflectionExtensions.

SatisfiesInterfaceDefinition(Type, Type) Method

Summary

Indicates whether the specified type implements the specified interface definition. If interfaceTypeDefinition is generic, it must not be a generic type instantiation.
Namespace
Cake.Testing.Extensions
Containing Type
ReflectionExtensions

Syntax

public static bool SatisfiesInterfaceDefinition(this Type type, Type interfaceTypeDefinition)

Parameters

Name Type Description
type Type The type to examine.
interfaceTypeDefinition Type The interface definition to find. If interfaceTypeDefinition is generic, it must not be a generic type instantiation.

Return Value

Type Description
bool if the specified type implements the specified interface definition; otherwise, .