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

Definição

Cria um Type objeto que representa um tipo de delegado System.Func genérico que tem argumentos de tipo específicos. O último argumento de tipo especifica o tipo de retorno do delegado criado.

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[]

Uma matriz de objetos Type que especificam os argumentos de tipo para o tipo delegado System.Func.

funcType
Type

Quando esse método é retornado, contém o tipo de delegado System.Func genérico que tem argumentos de tipo específicos. Contém nulo se não houver um delegado system.Func genérico que corresponda ao typeArgs. Esse parâmetro é passado sem inicialização.

Retornos

true se o tipo de delegado System.Func genérico foi criado para específico typeArgs; caso contrário, false.

Atributos

Aplica-se a