Click or drag to resize
TypeExtensionsIsAssignableFromGeneric Method
Check if generic types matches

Namespace: Griffin
Assembly: Griffin.Core (in Griffin.Core.dll) Version: 1.0.39.0 (1.0.39.0)
Syntax
public static bool IsAssignableFromGeneric(
	this Type serviceType,
	Type concreteType
)

Parameters

serviceType
Type: SystemType
Service/interface
concreteType
Type: SystemType
Concrete/class

Return Value

Type: Boolean
true if the concrete implements the service; otherwise false

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