Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created March 26, 2016 14:49
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/19fa4649d81a2db4a2da to your computer and use it in GitHub Desktop.
Save Fhernd/19fa4649d81a2db4a2da to your computer and use it in GitHub Desktop.
Demostración uso de la clase genérica Queue en C#.
using System;
using System.Collections.Generic;
namespace Articulos.Pregunta.P1220
{
public class UsoQueue
{
public static void Main()
{
Queue<string> aplicaciones = new Queue<string>();
aplicaciones.Enqueue("Notepad++");
aplicaciones.Enqueue("Chrome");
aplicaciones.Enqueue("PowerShell");
aplicaciones.Enqueue("ClipMate");
aplicaciones.Enqueue("Evernote");
// Recorrido por los elementos de la lista:
foreach (string aplicacion in aplicaciones)
{
Console.WriteLine (aplicacion);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment