Command line arguments in VS2015

commandline

public class Hello
{
public static void Main(string[] args)
{
Console.WriteLine(“Hello, World!”);
Console.WriteLine(“You entered the following {0} command line arguments:”,  args.Length );
for (int i=0; i < args.Length; i++)
{
Console.WriteLine(“{0}”, args[i]);
}

}
}

run

Leave a Reply

Your email address will not be published. Required fields are marked *