Suppose I have a list of objects
List DogList = new List();
and I want to automatically add objects to it, li
for (int i = 0; i < 10; i++) { dogClass myDog = new dogClass(); DogList.Add(myDog); }