Class DelegateCompiler
Represents a batched delegate compiler.
Inheritance
System.Object
DelegateCompiler
Namespace: Solti.Utils.Primitives
Assembly: Solti.Utils.Primitives.dll
Syntax
public sealed class DelegateCompiler : Object
Constructors
DelegateCompiler()
Declaration
public DelegateCompiler()
Methods
Compile()
Compiles all the registered delegates at once.
Declaration
public void Compile()
Register<TDelegate>(Expression<TDelegate>)
Registers a new delegate to be compiled.
Declaration
public FutureDelegate<TDelegate> Register<TDelegate>(Expression<TDelegate> lambda)
where TDelegate : Delegate
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<TDelegate> | lambda |
Returns
Type | Description |
---|---|
FutureDelegate<TDelegate> |
Type Parameters
Name | Description |
---|---|
TDelegate |