Expression.TryGetFuncType(Type[], Type) Método
Definição
Cria um objeto Type que representa um tipo de delegado genérico System.Func, que tem argumentos de tipo específicos.Creates a Type object that represents a generic System.Func delegate type that has specific type arguments. O último argumento de tipo especifica o tipo de retorno do delegado criado.The last type argument specifies the return type of the created delegate.
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
Parâmetros
- typeArgs
- Type[]
Uma matriz de objetos Type que especifica os argumentos de tipo para o tipo de delegado System.Func.An array of Type objects that specify the type arguments for the System.Func delegate type.
- funcType
- Type
Quando esse método retorna, ele contém o tipo de delegado genérico System.Func, que tem argumentos de tipo específicos.When this method returns, contains the generic System.Func delegate type that has specific type arguments. Contém NULL se não houver nenhum delegado System. Func genérico que corresponda a typeArgs .Contains null if there is no generic System.Func delegate that matches the typeArgs. Este parâmetro é passado não inicializado.This parameter is passed uninitialized.
Retornos
true se o tipo de delegado genérico System.Func foi criado para um typeArgs específico; caso contrário, false.true if generic System.Func delegate type was created for specific typeArgs; otherwise, false.