Skip to content

Methods_T_Cyjb_Reflection_MethodInfoUtil

CYJB edited this page Apr 5, 2022 · 1 revision

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 对象。
  Back to Top

参见

Reference

MethodInfoUtil 类
Cyjb.Reflection 命名空间

Clone this wiki locally