collections

List initializer

We all used to type new List<int> { 1, 2, 3, 4 } or new int[] { 1, 2, 3, 4} to initialize collections with some values. It looks similar in syntax but differs in behavior and you should be careful if you are concerned about performance.

Read more...

Harmful collection transformations. Part 3: collections

Starting with string in the first post we continue to study examples with collection transformations and how they affect our applications.

Read more...