2 using System
.Threading
;
3 using System
.Threading
.Tasks
;
7 public static int Main ()
10 res
= TestMethod (new TaskCanceledException ()).Result
;
14 res
= TestMethod (new OperationCanceledException ("my message")).Result
;
21 async static Task
<int> TestMethod (Exception ex
)
25 } catch (OperationCanceledException e
) {
36 async static Task
Foo (Exception e
)