예제 #1
0
        public static void Main(string[] args)
        {
            MyEnumerable myEnumerable = new MyEnumerable();

            foreach (Person person in myEnumerable)
            {
                Console.WriteLine(person.Name);
            }
        }
예제 #2
0
        public static void Main(string[] args)
        {
            MyEnumerable myEnumerable = new MyEnumerable();

            foreach (Person person in myEnumerable)
            {
                Console.WriteLine (person.Name);
            }
        }