コード例 #1
0
        public static void Main(string[] args)
        {
            MyEnumerable myEnumerable = new MyEnumerable();

                foreach (Person person in myEnumerable)
                {
                Console.WriteLine (person.personId);
                Console.WriteLine (person.personName);
                Console.WriteLine (person.personLocation);
                }
        }
コード例 #2
0
      public static void Main(string[] args)
      {
          MyEnumerable myEnumerable = new MyEnumerable();

          foreach (Person person in myEnumerable)
          {
              Console.WriteLine(person.personId);
              Console.WriteLine(person.personName);
              Console.WriteLine(person.personLocation);
          }
      }