AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

CheckInterface..::..Implements<(Of <(<'I>)>)> Method

Determines whether the specified type implements the given interface.

Namespace:  AdvantageCMS.Core.Common
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static bool Implements<I>(
	this Type type,
	I interface
)

Type Parameters

I
The interface type to check against.

Parameters

type
Type: Type
The type to check.
interface
Type: I
The interface type to verify implementation of.

Return Value

true if the type implements the specified interface; otherwise, false.

Exceptions


ExceptionCondition
ArgumentExceptionThrown when the provided type argument is not an interface.