Пример #1
0
 public static void SetToTaskResp <TRes>(this DoResp <TRes> res, TaskResp <TRes> taskResp)
     where TRes : Resp, new()
 {
     taskResp.run_status = res.run_status;
     taskResp.resp       = res.resp;
 }
Пример #2
0
 public static void SetToTaskResp <TRes>(this DoResp <TRes> res, EventTaskResp <TRes> taskResp)
 //where TRes :new()
 {
     taskResp.run_status = res.run_status;
     taskResp.resp       = res.resp;
 }