var geoSettings = (from c in geoFields.Elements("Maps").Elements("Map")
select new
{
loc = c.Element("Location").Value
}).Distinct().Intersect(from p in terrainFields.Elements("Maps").Elements("Map")
select new
{
loc = p.Element("Location").Value
});
var flightCheck = from x in baseStations.Elements("BaseStation").Elements("Station")
// where (geoSettings.Location.Contains(x.Element("Location").Value))
select new
{
Flights = x.Element("FlightName").Value,
loc = x.Element("Location").Value
};
Both Maps and BaseStation are xml files.I'm stuck at // where(geoSettings.Location.Contains(x.Element("Location").Value)) geoSettings is an IEnumerable.How can i get the "Location"?