fork download
using System;

public class Test
{
	public class Resource
	{
		public class Id
		{
			public static int map = 0;
		}
	}
	public class FakeFragmentManager
	{
		public static FakeMapFragment FindFragmentById(int id)
		{
			return new FakeMapFragment();
		}
	}
	public class FakeMapFragment 
	{
		public void GetMapAsync(IOnMapReadyCallback OnMapReadyCallback)	
		{
			OnMapReadyCallback.OnMapReady("fake map is ready");
		}
	}
	public interface IOnMapReadyCallback 
	{
		void OnMapReady(string str);
	}
	
	public class VeryNaiveImpl : IOnMapReadyCallback
	{
		public Action<string> Callback;
		public void OnMapReady(string map)
		{
			if(Callback!=null)
				Callback(map);
		}
	}
	
	public static void Main()
	{
		var mapFragment = FakeFragmentManager.FindFragmentById(Resource.Id.map);
		mapFragment.GetMapAsync(new VeryNaiveImpl { 
			Callback = (map) => 
			{ 
				Console.WriteLine(map); 
			}});
	}
}
Success #stdin #stdout 0.03s 24120KB
stdin
Standard input is empty
stdout
fake map is ready