using System;
using System.Collections.Generic;
namespace Articulos.Pregunta.P1220
{
public class UsoList
{
public static void Main()
{
List<string> dinosaurios = new List<string>();
dinosaurios.Add("Tiranosaurio");
dinosaurios.Add("Amargasaurio");
dinosaurios.Add("Mamenchisaurio");
dinosaurios.Add("Deinonychus");
dinosaurios.Add("Compsognathus");
// Recorrido por los elementos de la lista:
foreach (string dinosaurio in dinosaurios)
{
Console.WriteLine (dinosaurio);
}
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKCm5hbWVzcGFjZSBBcnRpY3Vsb3MuUHJlZ3VudGEuUDEyMjAKewogICAgcHVibGljIGNsYXNzIFVzb0xpc3QKICAgIHsKICAgICAgICBwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCiAgICAgICAgewogICAgICAgICAgICBMaXN0PHN0cmluZz4gZGlub3NhdXJpb3MgPSBuZXcgTGlzdDxzdHJpbmc+KCk7CiAgICAgICAgICAgIAogICAgICAgICAgICBkaW5vc2F1cmlvcy5BZGQoIlRpcmFub3NhdXJpbyIpOwogICAgICAgICAgICBkaW5vc2F1cmlvcy5BZGQoIkFtYXJnYXNhdXJpbyIpOwogICAgICAgICAgICBkaW5vc2F1cmlvcy5BZGQoIk1hbWVuY2hpc2F1cmlvIik7CiAgICAgICAgICAgIGRpbm9zYXVyaW9zLkFkZCgiRGVpbm9ueWNodXMiKTsKICAgICAgICAgICAgZGlub3NhdXJpb3MuQWRkKCJDb21wc29nbmF0aHVzIik7CiAgICAgICAgICAgIAogICAgICAgICAgICAvLyBSZWNvcnJpZG8gcG9yIGxvcyBlbGVtZW50b3MgZGUgbGEgbGlzdGE6CiAgICAgICAgICAgIGZvcmVhY2ggKHN0cmluZyBkaW5vc2F1cmlvIGluIGRpbm9zYXVyaW9zKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSAoZGlub3NhdXJpbyk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9Cn0=