T
Tony Johansson
Hello!
I don't have LINQ at the moment.
I have a collection with Products object
A Product have the following fields in this order.
string Name;
int ProductNumber;
int numberInstock;
int month; //The month this product was sold
int year; //The year this product was sold.
I just wonder if there are good way to count every object that have the
following criteria.
1.Some objects in the collection have year = 2009
2. Perform a group by on month so you will get how many objects you have for
each month.
//Tony
I don't have LINQ at the moment.
I have a collection with Products object
A Product have the following fields in this order.
string Name;
int ProductNumber;
int numberInstock;
int month; //The month this product was sold
int year; //The year this product was sold.
I just wonder if there are good way to count every object that have the
following criteria.
1.Some objects in the collection have year = 2009
2. Perform a group by on month so you will get how many objects you have for
each month.
//Tony