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?
You can use the initializer:
var listInt = new List {4, 5, 6, 7};
var listString = new List {"string1", "hello", "world"};
var listCustomObjects = new List {new Cat(), new Dog(), new Horse()};
So you could be using this:
var listInt = new List {0.0, 0.0, 0.0, 0.0};
Otherwise, using the default constructor, the List will be empty.