Category: C# Basics
-
The essentials of the Aggregate method
The Aggregate method combines a sequence of elements into a single value. It does that by iterating over each one of them and calling a lambda function. This lambda function produces a result and carries it on to the next iteration. The simplest form The following example calculates the sum of some numbers: In comparison,…
-
Tips For Making C# More Readable
“Code is read far more than it is written.” This proverb seems to echo in my head more often than not when I open Visual Studio to investigate a bug. Writing code is easier than reading it. I always thought of reading code as something like reading someone’s mind; you’re following their thought processes as…
