public VegetableEnumerator(VegetableCollection collection) { _collection = collection; _curIndex = -1; Current = default(Vegetable); }
protected void Page_Load(object sender, EventArgs e) { VegetableCollection dataCollection = new VegetableCollection(); vegetablelist.DataSource = dataCollection.GetDataList(); }
public VegetableSalad() { Ingredients = new VegetableCollection(); }