How can I do this in a more readable way?
foreach (var actual in actualPositions)
{
foreach (var projection in projections)
{
var position = Create(book, actual, projection);
position.TargetNett = projection.DailyProjectedNet.ToString();
yield return position;
}
}
You want to simplify that? Why? It’s simple and readable and understandable. You can come up with all sorts of gobbledygook that is harder to read but sure looks cooler. Do not! Resist the urge to be fancy.