コード例 #1
0
ファイル: GeneratedMethod.cs プロジェクト: adamjmoon/Siege
 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
ファイル: GeneratedMethod.cs プロジェクト: adamjmoon/Siege
 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
ファイル: GeneratedMethod.cs プロジェクト: adamjmoon/Siege
 public Type CreateDelegate(MethodInfo info)
 {
     var action = new CreateDelegateAction(info.ReturnType);
     this.actions.Add(action);
     return action.DelegateType;
 }
コード例 #4
0
ファイル: GeneratedMethod.cs プロジェクト: adamjmoon/Siege
 public Type CreateDelegate(Type returnType)
 {
     var action = new CreateDelegateAction(returnType);
     this.actions.Add(action);
     return action.DelegateType;
 }
コード例 #5
0
ファイル: GeneratedMethod.cs プロジェクト: adamjmoon/Siege
 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;
 }