Language

Expression.GetDelegateType(Type[]) メソッド

定義

ジェネリック Typeまたは特定の型引数を持つデリゲート型Func<TResult>表すAction オブジェクトを取得します。

public:
 static Type ^ GetDelegateType(... cli::array <Type ^> ^ typeArgs);
public static Type GetDelegateType(params Type[] typeArgs);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Delegate creation requires dynamic code generation.")]
public static Type GetDelegateType(params Type[] typeArgs);
static member GetDelegateType : Type[] -> Type
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Delegate creation requires dynamic code generation.")>]
static member GetDelegateType : Type[] -> Type
Public Shared Function GetDelegateType (ParamArray typeArgs As Type()) As Type

パラメーター

typeArgs
Type[]

デリゲートの型引数。

戻り値

デリゲート型。

属性

注釈

最後の型引数は、デリゲートの戻り値の型を決定します。 Funcがない場合、またはActionが十分な大きさの場合は、カスタム デリゲート型が生成されます。

Funcと同様に、最後の引数は戻り値の型です。 System.Voidを生成するためにActionに設定できます。

適用対象