  | TypeExtensionsFindGenericBaseType Method | 
            Finds a specific generic base type, based on the generic type definition of the base type.
            
Namespace: Ookii.JumboAssembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic static Type? FindGenericBaseType(
	this Type type,
	Type baseType,
	bool throwOnNotFound
)
<ExtensionAttribute>
Public Shared Function FindGenericBaseType ( 
	type As Type,
	baseType As Type,
	throwOnNotFound As Boolean
) As Type
public:
[ExtensionAttribute]
static Type^ FindGenericBaseType(
	Type^ type, 
	Type^ baseType, 
	bool throwOnNotFound
)
[<ExtensionAttribute>]
static member FindGenericBaseType : 
        type : Type * 
        baseType : Type * 
        throwOnNotFound : bool -> Type Parameters
- type  Type
 - The type whose base types to check.
 - baseType  Type
 - The generic type definition of the base type.
 - throwOnNotFound  Boolean
 -  to throw an exception if the specified type doesn't inherit from the type;
             to return  in that case.
 
Return Value
TypeThe instantiated generic base 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