示例#1
0
 public Task <MyMethodOutput> MyMethod4_2(MyMethod4Input input)
 {
     return(Task.FromResult(new MyMethodOutput {
         Result = 42
     }));
 }
 public MyMethodOutput MyMethod4_2(MyMethod4Input input)
 {
     return(new MyMethodOutput {
         Result = 42
     });
 }
示例#3
0
 public MyMethodOutput MyMethod4(MyMethod4Input input)
 {
     return new MyMethodOutput { Result = 42 };
 }