Domain-Driven Design #06: aggregate and aggregate root
Architektura 2161 dni, 8 godzin, 45 minut temu 115 ź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 2389 dni, 6 godzin, 25 minut temu 48 ź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 3119 dni, 4 godziny, 47 minut temu 261 ź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 3446 dni, 7 godzin, 11 minut temu 247 źrodło rozwiń