Exemplo n.º 1
0
        public Type CreateDelegate(Type returnType)
        {
            var action = new CreateDelegateAction(returnType);

            this.actions.Add(action);
            return(action.DelegateType);
        }
Exemplo n.º 2
0
        public Type CreateDelegate(MethodInfo info)
        {
            var action = new CreateDelegateAction(info.ReturnType);

            this.actions.Add(action);
            return(action.DelegateType);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
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);
        }
Exemplo 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);
        }
Exemplo n.º 6
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;
 }
Exemplo n.º 7
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;
 }
Exemplo n.º 8
0
 public Type CreateDelegate(Type returnType)
 {
     var action = new CreateDelegateAction(returnType);
     this.actions.Add(action);
     return action.DelegateType;
 }
Exemplo n.º 9
0
 public Type CreateDelegate(MethodInfo info)
 {
     var action = new CreateDelegateAction(info.ReturnType);
     this.actions.Add(action);
     return action.DelegateType;
 }
Exemplo n.º 10
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;
 }