 | TypeExtensionsIsImplementsInterface Method (Type, Type) |
Method to check if a given class, and its superclasses and interfaces (deep), implement a given interface.
Namespace:
com.espertech.esper.compat
Assembly:
NEsper.Compat (in NEsper.Compat.dll) Version: 8.0.0.0
Syntaxpublic static bool IsImplementsInterface(
this Type clazz,
Type interfaceClass
)
Parameters
- clazz
- Type: SystemType
to check, including all its superclasses and their interfaces and extends - interfaceClass
- Type: SystemType
is the interface class to look for
Return Value
Type:
Boolean
true if such interface is implemented by type of the clazz or its superclasses orextends by type interface and superclasses (deep check)
Usage 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).
See Also