Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. var staffelpreiseGrouped = from staffelpreis in GetStaffelpreise() // Returns another custom object from a 3rd-party lib -> I can't change that
  2.                                            group staffelpreis by staffelpreis.Materialnummer into g
  3.                                            orderby g.Key descending
  4.                                            select new MyStrongType()
  5.                                            {
  6.                                                ID = g.Key,
  7.                                                Staffeln = g // Staffeln == List<Staffel> -> Staffel.Amount and Staffel.Price are two properties I want to fill
  8.                                            };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement