How to turn or change the logic below into a dynamic collection initializer in code. I want to do this dynamically base upon new incoming data or new incoming cars.
Listcars = new List
{ new Car { Name = "Corvette", Color = Color.Yellow },
new Car { Name = "Golf", Color = Color.Blue}
};
Tapan PatelPosted Jul 28, 2016, 9:54 PM