| TypeExtensionsFindGenericInterfaceType Method (Type, Type) |
Finds a specific generic interface implemented by a type based on the generic type definition of the interface.
Namespace:
Ookii.Jumbo
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax public static Type FindGenericInterfaceType(
this Type type,
Type interfaceType
)
<ExtensionAttribute>
Public Shared Function FindGenericInterfaceType (
type As Type,
interfaceType As Type
) As Type
public:
[ExtensionAttribute]
static Type^ FindGenericInterfaceType(
Type^ type,
Type^ interfaceType
)
[<ExtensionAttribute>]
static member FindGenericInterfaceType :
type : Type *
interfaceType : Type -> Type
Parameters
- type
- Type: SystemType
The type whose interfaces to check. - interfaceType
- Type: SystemType
The generic type definition of the interface.
Return Value
Type:
TypeThe instantiated generic interface type.
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