Expression.TryGetFuncType(Type[], Type) 메서드

정의

Type 특정 형식 인수가 있는 제네릭 System.Func 대리자 형식을 나타내는 개체를 만듭니다. 마지막 형식 인수는 만든 대리자의 반환 형식을 지정합니다.

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

매개 변수

typeArgs
Type[]

System.Func 대리자 형식의 형식 인수를 지정하는 Type 개체의 배열입니다.

funcType
Type

이 메서드가 반환되면 특정 형식 인수가 있는 제네릭 System.Func 대리자 형식이 포함됩니다. 에 일치하는 제네릭 System.Func 대리자가 없는 경우 null을 typeArgs포함합니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다.

반품

true 특정 typeArgs에 대해 제네릭 System.Func 대리자 형식을 만들었으면 이고, false그렇지 않으면 .

특성

적용 대상