目录

IHandleExtensions 类

命名空间
Microsoft.AutoGen.Core
程序集
Microsoft.AutoGen.Core.dll

为实现 IHandle 接口的类型提供扩展方法。

public static class IHandleExtensions
继承
IHandleExtensions
继承的成员

方法

GetHandlers(Type)

从指定类型实现的接口中获取所有处理程序方法。

public static MethodInfo[] GetHandlers(this Type type)

参数

type Type

从中获取处理程序方法的类型。

返回值

MethodInfo[]

表示处理程序方法的 MethodInfo 对象数组。

GetHandlersLookupTable(Type)

从指定类型实现的接口中获取处理程序方法的查找表。

public static Dictionary<Type, MethodInfo> GetHandlersLookupTable(this Type type)

参数

type Type

从中获取处理程序方法的类型。

返回值

Dictionary<Type, MethodInfo>

一个字典,其中键是泛型类型,值是处理程序方法的 MethodInfo。