Exemple #1
0
 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();
        }
Exemple #3
0
 public VegetableSalad()
 {
     Ingredients = new VegetableCollection();
 }