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