Class CompiledLambda
Creates a compiled lambda to use in place of reflection.
Inherited Members
Namespace: LemonEdge.Utils
Assembly: LemonEdge.Utils.dll
Syntax
public class CompiledLambda
Constructors
CompiledLambda()
Declaration
public CompiledLambda()
Methods
Create<T>(ConstructorInfo)
Creates a lambda calling the given type constructor.
Declaration
public static T Create<T>(ConstructorInfo ctor) where T : Delegate
Parameters
| Type | Name | Description |
|---|---|---|
| ConstructorInfo | ctor | The type constructor. |
Returns
| Type | Description |
|---|---|
| T | The associated lambda function. |
Type Parameters
| Name | Description |
|---|---|
| T | The lambda signature. |
Create<T>(MethodInfo, params Type[])
Creates a lambda calling the given method, with optional generic type arguments.
Declaration
public static T Create<T>(MethodInfo method, params Type[] typeArguments) where T : Delegate
Parameters
| Type | Name | Description |
|---|---|---|
| MethodInfo | method | The method call. |
| Type[] | typeArguments | The type arguments. |
Returns
| Type | Description |
|---|---|
| T | The associated lambda function. |
Type Parameters
| Name | Description |
|---|---|
| T | The lambda signature. |
Create<T>(Type, params Type[])
Creates a lambda calling the given type constructor.
Declaration
public static T Create<T>(Type type, params Type[] typeArguments) where T : Delegate
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The concrete type. |
| Type[] | typeArguments | The constructor arguments. |
Returns
| Type | Description |
|---|---|
| T | The associated lambda function. |
Type Parameters
| Name | Description |
|---|---|
| T | The lambda signature. |