Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created October 8, 2013 23:50
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/6893820 to your computer and use it in GitHub Desktop.
Save Fhernd/6893820 to your computer and use it in GitHub Desktop.
Demostración de la captura de argumentos desde de la línea de comandos utilizando el enfoque estándar del método Main. Es decir, a través del parámetro de cadenas de caracteres.
using System;
public class Familia
{
public static void Main (string[] args)
{
// vamos a utilizar la sentencia iterativa foreach para
// recorrer cada objeto string en el argumento pasado desde
// la línea de comandos.
foreach (string s in args)
{
Console.WriteLine ( s );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment