IsGeneric

public static bool IsGeneric(Type type, Type genericTypeDefinition) ;

指定したジェネリック型定義から構築されたジェネリック型かどうかを返す。

パラメーター名 説明
type
genericTypeDefinition ジェネリック型定義

typeがgenericTypeDefinitionから構築されたジェネリック型であればtrueを返す。