Created
August 10, 2017 04:41
-
-
Save Fhernd/c2324005a4823d8488b612b05e6827a3 to your computer and use it in GitHub Desktop.
Código cliente para demostrar la funcionalidad de la aplicación.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace cap07.usoienumerator | |
{ | |
public class App | |
{ | |
public static void Main() | |
{ | |
Persona[] personas = new Persona[3] | |
{ | |
new Persona("Fyodor", "Dostoevsky"), | |
new Persona("Honoré", "Balzac"), | |
new Persona("Charles", "Dickens") | |
}; | |
Gente gente = new Gente(personas); | |
foreach(Persona p in gente) | |
{ | |
Console.WriteLine(p.Nombre + " " + p.Apellido); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment