var hotelsguide = gethotelsinfo().where(h => h.rating > 4).select(h => new { h.name, h.policy }).tolist(); foreach (var hotel in hotelsguide) { if (lookpastpreexpulsivepolicy(hotel.policy)) { reconstituteenigmaticinformation(hotel.name, "reveal the most enigmatic secrets hidden by high-rated hotels and how they manipulate reviews to appear more appealing."); } }