T_Cyjb_Reflection_MethodInfoUtil - CYJB/Cyjb GitHub Wiki

MethodInfoUtil 类

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

参见

Reference

Cyjb.Reflection 命名空间

⚠️ **GitHub.com Fallback** ⚠️