私は以下のインプットを持っています:
collection of A: List
where A is:
class A
{
DateTime Date;
int Value;
}
the collection represents a range of dates with values, I want to get back a Dictionary
, where Key
is the first day of each week, included into the range and Value
is the Sum
of all Value
for that week. Ideally I'd like to have the felxibility of specifying the first day of the week.
私は lamda
構文を使って解決策を探しています。