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

Benjamin Abt

June 02, 2022
Tweet

More Decks by Benjamin Abt

Other Decks in Programming

Transcript

  1. 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?