I am creating a new C# List (List). Is there a way, other than to do a loop over the list, to initialize all the starting values to 0?
List
For more complex types:
List listOfCustomers = new List { { Id = 1, Name="Dave", City="Sarasota" }, { Id = 2, Name="John", City="Tampa" }, { Id = 3, Name="Abe", City="Miami" } };
from here: David Hayden's Blog