using System.Collections.Generic;
public static List<MainLand> GetCountryList(string id)
var result = new List<MainLand>();
result.Add(new MainLand {id = 1, name = "Россия"});
result.Add(new MainLand {id = 2, name = "Украина"});
public static void Main()
foreach(var c in MLandl.GetCountryList("вероятно какие нибудь условия"))
Console.WriteLine("{0} {1}", c.id, c.name);