[tuner] handle the case with multiple "preserve" attributes
[mono-project.git] / mcs / tests / test-async-51.cs
blob65f1511c65df73107b4dbdd04ae7040b2164bbf1
1 using System;
2 using System.Threading.Tasks;
4 public class Program
6 public static void Main (string[] args)
8 var p = new Program ();
9 p.LoadPlayers ().Wait ();
12 class Model
14 public Player SelectedPlayer { get; set; }
17 class Player
21 Model model = new Model ();
23 private async Task LoadPlayers ()
25 Action<Player> selectPlayer = player => { };
26 Func<Action<Player>, Action<Player>> selector = functor => player => {
27 Console.WriteLine (model);
30 selector (selectPlayer);