Advertisement
Fhernd

App.cs

Aug 9th, 2017
14,709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System;
  2.  
  3. namespace cap07.usoienumerator
  4. {
  5.     public class App
  6.     {
  7.         public static void Main()
  8.         {
  9.             Persona[] personas = new Persona[3]
  10.             {
  11.                 new Persona("Fyodor", "Dostoevsky"),
  12.                 new Persona("Honoré", "Balzac"),
  13.                 new Persona("Charles", "Dickens")
  14.             };
  15.  
  16.             Gente gente = new Gente(personas);
  17.  
  18.             foreach(Persona p in gente)
  19.             {
  20.                 Console.WriteLine(p.Nombre + " " + p.Apellido);
  21.             }
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement