예제 #1
0
        static void Main(string[] args)
        {
            NameRepository namesRepository = new NameRepository();

            for (Iterator iter = namesRepository.GetIterator(); iter.HasNext();)
            {
                String name = (String)iter.Next();
                Console.WriteLine("Name : " + name);
            }
        }
예제 #2
0
 public NameIterator(NameRepository namerepo)
 {
     this.namerepo = namerepo;
 }