| ExtensionsReflectionImplementsInterface Method (Type, Type) |
Checks if the type has implemented the defined interface
Namespace:
Cauldron
Assembly:
Cauldron.Activator (in Cauldron.Activator.dll) Version: 3.2.0.2
Syntax public static bool ImplementsInterface(
this Type type,
Type typeOfInterface
)
Parameters
- type
- Type: SystemType
The type that may implements the interface - typeOfInterface
- Type: SystemType
The type of interface to look for
Return Value
Type:
Boolean
True if the
type has implemented the interface
typeOfInterfaceUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also