Esempio n. 1
0
 public Type CreateDelegate(Func<GeneratedMethod> info, Type returnType)
 {
     this.actions.Add(new LoadFunctionAction(() => this, info));
     var action = new CreateDelegateAction(returnType);
     this.actions.Add(action);
     return action.DelegateType;
 }
Esempio n. 2
0
 public Type CreateDelegate(GeneratedVariable variable, Func<MethodBuilderBundle> info, Type returnType)
 {
     this.actions.Add(new LoadVariableFunctionAction(() => this, variable.LocalIndex, info));
     var action = new CreateDelegateAction(returnType);
     this.actions.Add(action);
     return action.DelegateType;
 }
Esempio n. 3
0
 public Type CreateDelegate(MethodInfo info)
 {
     var action = new CreateDelegateAction(info.ReturnType);
     this.actions.Add(action);
     return action.DelegateType;
 }
Esempio n. 4
0
 public Type CreateDelegate(Type returnType)
 {
     var action = new CreateDelegateAction(returnType);
     this.actions.Add(action);
     return action.DelegateType;
 }
Esempio n. 5
0
 public Type CreateDelegate(GeneratedVariable variable, MethodInfo info)
 {
     this.actions.Add(new LoadVariableFunctionAction(() => this, variable.LocalIndex, info));
     var action = new CreateDelegateAction(info.ReturnType);
     this.actions.Add(action);
     return action.DelegateType;
 }