using System.Collections.Generic class FoodMakingBox where T : IEatable, new() { List food; void Make(int numberOfFood) { this.food = new List(); for (int i = 0; i < numberOfFood; i++) { this.food.Add(new T()); } } }