Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created August 10, 2017 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/c2324005a4823d8488b612b05e6827a3 to your computer and use it in GitHub Desktop.
Save Fhernd/c2324005a4823d8488b612b05e6827a3 to your computer and use it in GitHub Desktop.
Código cliente para demostrar la funcionalidad de la aplicación.
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