Domain-Driven Design #06: aggregate and aggregate root
Architektura 1719 dni, 22 godziny, 21 minut temu 113 źrodło rozwiń
Czy komórki, serwisy i systemy, mają coś wspólnego z komórkami, organizmami i grupami społecznymi? Sprawdźmy to.
Architektura 1947 dni, 20 godzin, 1 minutę temu 45 źrodło rozwiń
Aggregate is one of the most fun and powerful methods in LINQ. Sadly it's also of of the most underused and "scary" ones. I hope that after reading this post you will understand Aggregate a bit more, know when to use it and won't be afraid of doing so.
Sztuka programowania 2677 dni, 18 godzin, 23 minuty temu 259 źrodło rozwiń
Napisany przez paweltymura on Jak agregować tekst do String Buildera? Zazwyczaj robi się to tego typu kodem: public string GetPagedHtml() { StringBuilder sb = new StringBuilder(); foreach (var page in Pages) page.CollectHtml(sb, page.Index==0); return sb.ToString(); } Ale przecież można łatwiej, lepiej i przyjemniej... z Linq.Aggregate.
Sztuka programowania 3004 dni, 20 godzin, 47 minut temu 247 źrodło rozwiń