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

Definición

Crea un objeto Type 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);
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[]

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

funcType
Type

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

Devoluciones

Boolean

true, si el tipo de delegado System.Func genérico se ha creado para un elemento typeArgs específico; de lo contrario, false.

Se aplica a