2 using System
.Collections
.Generic
;
3 using System
.Threading
.Tasks
;
15 public static void Main ()
18 x
.AlignTwoItems ().Wait ();
21 public async Task
AlignTwoItems ()
24 (C
) await AddItemAt (20, 20),
25 (C
) await AddItemAt (40, 40)
27 await MoveItemBy (items
, 1, 1);
29 Console
.WriteLine ((C
) items
[0]);
30 Console
.WriteLine ((C
) items
[1]);
33 Task
MoveItemBy (object o
, int a
, int b
)
35 return Task
.FromResult (2);
38 async Task
<B
> AddItemAt (int a
, int b
)