Expression.TryGetFuncType(Type[], Type) メソッド

定義

特定の型引数を持つ汎用 System.Func デリゲート型を表す Type オブジェクトを作成します。 最後の型引数で、作成するデリゲートの戻り値の型を指定します。

public:
 static bool TryGetFuncType(cli::array <Type ^> ^ typeArgs, [Runtime::InteropServices::Out] Type ^ % funcType);
public static bool TryGetFuncType (Type[] typeArgs, out Type funcType);
public static bool TryGetFuncType (Type[] typeArgs, out Type? funcType);
static member TryGetFuncType : Type[] * Type -> bool
Public Shared Function TryGetFuncType (typeArgs As Type(), ByRef funcType As Type) As Boolean

パラメーター

typeArgs
Type[]

System.Func デリゲート型の型引数を指定する Type オブジェクトの配列。

funcType
Type

このメソッドが返されるときに、特定の型引数を持つ汎用 System.Func デリゲート型を格納します。 typeArgs に一致する汎用 System.Func デリゲートがない場合は、null を格納します。 このパラメーターは初期化せずに渡されます。

戻り値

Boolean

特定の typeArgs について汎用の System.Func デリゲート型が作成された場合は true。それ以外の場合は false

適用対象