예제 #1
0
 public VegetableEnumerator(VegetableCollection collection)
 {
     _collection = collection;
     _curIndex   = -1;
     Current     = default(Vegetable);
 }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            VegetableCollection dataCollection = new VegetableCollection();

            vegetablelist.DataSource = dataCollection.GetDataList();
        }
예제 #3
0
 public VegetableSalad()
 {
     Ingredients = new VegetableCollection();
 }