Table of Contents

Class IHandleExtensions

Namespace
Microsoft.AutoGen.Core
Assembly
Microsoft.AutoGen.Core.dll

Provides extension methods for types implementing the IHandle interface.

public static class IHandleExtensions
Inheritance
IHandleExtensions
Inherited Members

Methods

GetHandlers(Type)

Gets all the handler methods from the interfaces implemented by the specified type.

public static MethodInfo[] GetHandlers(this Type type)

Parameters

type Type

The type to get the handler methods from.

Returns

MethodInfo[]

An array of MethodInfo objects representing the handler methods.

GetHandlersLookupTable(Type)

Gets a lookup table of handler methods from the interfaces implemented by the specified type.

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

Parameters

type Type

The type to get the handler methods from.

Returns

Dictionary<Type, MethodInfo>

A dictionary where the key is the generic type and the value is the MethodInfo of the handler method.