예제 #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;
 }
예제 #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;
 }
예제 #3
0
 public Type CreateDelegate(MethodInfo info)
 {
     var action = new CreateDelegateAction(info.ReturnType);
     this.actions.Add(action);
     return action.DelegateType;
 }
예제 #4
0
 public Type CreateDelegate(Type returnType)
 {
     var action = new CreateDelegateAction(returnType);
     this.actions.Add(action);
     return action.DelegateType;
 }
예제 #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;
 }