linux-packaging-mono/mcs/tests/test-async-51.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

33 lines
512 B
C#

using System;
using System.Threading.Tasks;
public class Program
{
public static void Main (string[] args)
{
var p = new Program ();
p.LoadPlayers ().Wait ();
}
class Model
{
public Player SelectedPlayer { get; set; }
}
class Player
{
}
Model model = new Model ();
private async Task LoadPlayers ()
{
Action<Player> selectPlayer = player => { };
Func<Action<Player>, Action<Player>> selector = functor => player => {
Console.WriteLine (model);
};
selector (selectPlayer);
}
}