3 using System.Collections.Generic;
4 using System.Threading.Tasks;
10 internal class MobileServiceTable2<T>
12 public Task<List<T>> ToListAsync ()
14 var r = new List<T> ();
16 return Task.FromResult<List<T>> (r);
28 private void OnTap (TodoItem task)
32 private async Task RefreshAsync ()
34 var ta = new MobileServiceTable2<TodoItem> ();
35 var r = await ta.ToListAsync ();
37 r.Select<TodoItem, int> (t => foo (() => OnTap (t))).ToList ();
40 public static void Main (String[] args)
43 t.RefreshAsync ().Wait ();