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.
Csharp (18)
.net (18)
MSSQL (6)
TSQL (5)
LINQ (5)
performance (5)
benchmark (5)
patterns (3)
OPTIMIZATION (2)
collections (2)
stackoverflow (2)
retry (2)
circuit breaker (2)
list (1)
roslyn (1)
analyzer (1)
string (1)
NDepend (1)
asp.net (1)
specification (1)
repository (1)
entityframework (1)
EF (1)
xml (1)
soap (1)
CancellationToken (1)
Timer (1)
debug (1)
properties (1)
IEnumerable (1)
foreach (1)