Expression.TryGetFuncType(Type[], Type) Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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