예제 #1
0
        static void Main(string[] args)
        {
            ListBoxTest lbt = new ListBoxTest("Hi", "Everybody");

            lbt.Add("What");
            lbt.Add("Is");
            lbt.Add("The");
            lbt.Add("C");
            lbt.Add("Sharp");
            string subt = "Universe";

            lbt[1] = subt;
            int count = 1;

            foreach (string s in lbt)
            {
                Console.WriteLine("Value {0}: {1}", count, s);
                count++;
            }
            Console.ReadLine();
        }
예제 #2
0
 public ListBoxEnumerator(ListBoxTest lbt)
 {
     this.lbt = lbt;
     index    = -1;
 }