Optimization for C# code
var list = new List<Foo>(99999999);
var arr = new Foo[99999999];
INSTEAD OF THIS:
var listToBeCreated = new List<Foo>();
listSource.ToList().ForEach(item => listToBeCreated.Add(new Foo(item.bar, item.tar, item.zar)))
USE THIS:
var listToBeCreated = listSource.Select(item => new Foo(item.bar, item.tar, item.zar));