Expression.TryGetFuncType(Type[], Type) Método

Definición

Crea un Type objeto que representa un tipo de delegado System.Func genérico que tiene argumentos de tipo específicos. El último argumento de tipo especifica el tipo de valor devuelto del delegado creado.

public:
 static bool TryGetFuncType(cli::array <Type ^> ^ typeArgs, [Runtime::InteropServices::Out] Type ^ % funcType);
public static bool TryGetFuncType(Type[] typeArgs, out Type funcType);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Delegate creation requires dynamic code generation.")]
public static bool TryGetFuncType(Type[] typeArgs, out Type? funcType);
public static bool TryGetFuncType(Type[] typeArgs, out Type? funcType);
static member TryGetFuncType : Type[] * Type -> bool
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Delegate creation requires dynamic code generation.")>]
static member TryGetFuncType : Type[] * Type -> bool
Public Shared Function TryGetFuncType (typeArgs As Type(), ByRef funcType As Type) As Boolean

Parámetros

typeArgs
Type[]

Matriz de objetos Type que especifican los argumentos de tipo para el tipo delegado System.Func.

funcType
Type

Cuando este método devuelve, contiene el tipo de delegado System.Func genérico que tiene argumentos de tipo específicos. Contiene null si no hay ningún delegado System.Func genérico que coincida con .typeArgs Este parámetro se pasa sin inicializar.

Devoluciones

true si se creó un tipo de delegado System.Func genérico para específico typeArgs; de lo contrario, false.

Atributos

Se aplica a