T_Cyjb_Reflection_MethodInfoUtil - CYJB/Cyjb GitHub Wiki
提供 MethodInfo 及其子类的扩展方法。
System.Object
Cyjb.Reflection.MethodInfoUtil
Namespace: Cyjb.Reflection
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public static class MethodInfoUtil
The MethodInfoUtil type exposes the following members.
名称 | 说明 | |
---|---|---|
![]() ![]() |
GenericArgumentsInferences(MethodBase, Type[]) | 根据给定的方法实参类型数组推断泛型方法的泛型类型。 |
![]() ![]() |
GenericArgumentsInferences(MethodBase, Type[], MethodArgumentsOption) | 根据给定的方法实参类型数组推断泛型方法的泛型类型。 |
![]() ![]() |
GetParameterTypesWithReturn | 返回当前方法的参数类型列表,使用最后一个类型表示返回值类型。 |
![]() ![]() |
MakeGenericMethodFromArgumentTypes(MethodInfo, Type[]) | 根据实参参数类型推断当前泛型方法定义的类型参数,并返回表示结果封闭构造方法的 MethodInfo 对象。 |
![]() ![]() |
MakeGenericMethodFromArgumentTypes(MethodInfo, Type[], MethodArgumentsOption) | 根据实参参数类型推断当前泛型方法定义的类型参数,并返回表示结果封闭构造方法的 MethodInfo 对象。 |