Let's say I have an object graph of Countries / States / Cities, like below:
public class City
{
public string Name { get; set; }
}
public class State
{
public List<City> Cities { get; set; }
}
public class Country
{
public List<State> States { get; set; }
}
Is there a simple way to query a List<Country>
to get all the cities?