Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

.net console arguments

class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("Total Arguments: {0}", args.Length);
        foreach (var arg in args)
            Console.WriteLine(arg);
    }
}

// run in console
C:/path/myprogram.exe "First Arg" 10 20
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #console #arguments
ADD COMMENT
Topic
Name
6+7 =