Class MethodInfoExtensions
Helper class for creating delegates from System.Reflection.MethodInfo.
Inheritance
System.Object
MethodInfoExtensions
Namespace: Solti.Utils.Primitives
Assembly: Solti.Utils.Primitives.dll
Syntax
public static class MethodInfoExtensions : Object
Methods
ToInstanceDelegate(MethodInfo)
Creates a new instance delegate from the given System.Reflection.MethodInfo.
Declaration
public static InstanceMethod ToInstanceDelegate(this MethodInfo method)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | method |
Returns
Type | Description |
---|---|
InstanceMethod |
ToStaticDelegate(MethodBase)
Creates a new static delegate from the given System.Reflection.MethodBase that can be either System.Reflection.ConstructorInfo or System.Reflection.MethodInfo.
Declaration
public static StaticMethod ToStaticDelegate(this MethodBase methodBase)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | methodBase |
Returns
Type | Description |
---|---|
StaticMethod |