using System;
class Sample
{
public static void Main()
{
int arg0 = 1;
long arg1 = 1;
float arg2 = -3.3F;
double arg3 = 5.5D;
string opt4 = "optional argument.";
char opt5 = 'X';
bool opt6 = true;
Console.WriteLine("Mandatory arguments:\n" +
"argument 0: {0}\n" +
"argument 1: {1}\n" +
"argument 2: {2}\n" +
"argument 3: {3}\n\n" +
"Optional arguments:\n" +
"optional 4: {4}\n" +
"optional 5: {5}\n" +
"optional 6: {6}\n",
arg0, arg1, arg2, arg3,
opt4, opt5, opt6);
}
}
|