Default Capacity of List

Jawahar BABU picture Jawahar BABU · Nov 19, 2009 · Viewed 39.2k times · Source

What is the default capacity of a List?

Answer

Mark Byers picture Mark Byers · Nov 19, 2009

Why don't you just try it?

Console.WriteLine("Default capacity of a List: " + new List<int>().Capacity);

This answer will work on all versions of .NET that have List. On my version, it happens to be 0.