Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WIDGET-TITLE WIDGET-COUNT(which is the sum of WidgetVoteCount.numberOfVotes)
- Blue Widget 5
- Purple Widget 6
- etc etc
- Public Class WidgetWithCounts
- {
- public Widget widget;
- public Int widgetCount;
- }
- public void Linq76() {
- List customers = GetCustomerList();
- var orderCounts =
- from c in customers
- select new {c.CustomerID, OrderCount = c.Orders.Count()};
- ObjectDumper.Write(orderCounts);
- }
Add Comment
Please, Sign In to add comment