Domain-Driven Design #06: aggregate and aggregate root
Architektura 1076 dni, 21 godzin, 27 minut temu 109 ź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 1304 dni, 19 godzin, 7 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 2034 dni, 17 godzin, 29 minut 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 2361 dni, 19 godzin, 53 minuty temu 247 źrodło rozwiń