Click or drag to resize

TypeExtensionsIsClosedTypeOf Method

Determines whether the candidate type supports any base or interface that closes the provided generic type.

Namespace:  Autofac
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public static bool IsClosedTypeOf(
	this Type this,
	Type openGeneric
)

Parameters

this
Type: SystemType
The type to test.
openGeneric
Type: SystemType
The open generic against which the type should be tested.

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Autofac.TypeExtensions.IsClosedTypeOf(System.Type,System.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