XIVK - 2012-07-07

Thanks for the suggestion; I update the OsmDataSource like this:

/// <summary>
/// Returns all the ways in this datasource.
/// </summary>
/// <returns></returns>
public IEnumerable<Way> GetWays()
{
return this._ways.Values;
}

Now you can use a foreach to loop over all ways (the ToList() creates an entirely new list in-memory).

Future: Implement this also on the IDataSource interface and all datasource classes.