private readonly List<A> _previousDayPrices;
private void PrintDebugPreviousDayPrice(DateTime date)
{
var str = "";
foreach (var d in _previousDayPrices.Take(2))
{
str += d.Price;
str += "-";
str += d.Date;
str += "-";
str += d.EuroExchangeRateDate;
str += "-";
str += d.EuroExchangeRate;
str += ",";
}
}
执行此操作的 linq 方式是什么,或者是否有字符串的方法?