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
Use this code:
Enumerable.Repeat(0d, 25).ToList(); new List(new double[25]); //Array elements default to 0