Nitro.DynamicMethodCompiler Class Reference

Detailed Description

Compiles dynamic method calls in code into actual calls.

Static Public Member Functions

static Type TypeFor (Type methodReturnType)
 DynamicMethods are generic objects which know their return type. This method creates a new DynamicMethod type with the given return type. More...
 
static CompiledFragment Compile (CompiledMethod function, string methodName, Type methodReturnType, CompiledFragment target)
 Compiles a dynamic method call in code into an actual dynamic method call. More...
 

Member Function Documentation

static CompiledFragment Nitro.DynamicMethodCompiler.Compile ( CompiledMethod  function,
string  methodName,
Type  methodReturnType,
CompiledFragment  target 
)
inlinestatic

Compiles a dynamic method call in code into an actual dynamic method call.

Parameters
functionThe function this call is being compiled within.
methodNameThe name of the method to call.
methodReturnTypeThe return type of the method that will be called.
targetThe object that the method will be run on.
Returns
A compiled dynamic method object.
static Type Nitro.DynamicMethodCompiler.TypeFor ( Type  methodReturnType)
inlinestatic

DynamicMethods are generic objects which know their return type. This method creates a new DynamicMethod type with the given return type.

Parameters
methodReturnTypeThe return type of the dynamic method.
Returns
A DynamicMethod<methodReturnType> type.