DevForce Help Reference
IsGenericTypeOf Method


Returns true if the type can be constructed from the genericType specified.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Function IsGenericTypeOf( _
   ByVal type As Type, _
   ByVal genericType As Type _
) As Boolean
'Usage
 
Dim type As Type
Dim genericType As Type
Dim value As Boolean
 
value = ReflectionExtensions.IsGenericTypeOf(type, genericType)
[Extension()]
public static bool IsGenericTypeOf( 
   Type type,
   Type genericType
)

Parameters

type
genericType
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ReflectionExtensions Class
ReflectionExtensions Members

Send Feedback