Upgrade to Pro — share decks privately, control downloads, hide ads and more …

EFFICIENT CREATION OF AN EMPTY COLLECTION IN .NET

EFFICIENT CREATION OF AN EMPTY COLLECTION IN .NET

7437b838338581b08ca72340b05475b9?s=128

Benjamin Abt

June 02, 2022
Tweet

More Decks by Benjamin Abt

Other Decks in Programming

Transcript

  1. EFFICIENT CREATION OF AN EMPTY COLLECTION IN

  2. There are several ways to create a list: - Using

    a list: List<string>() - By creating an array new string[]() - With the helper Enumerable.Empty<string>() But what is the most efficient way?
  3. https://github.com/BenjaminAbt/SustainableCode