I get the following exception / error
"Index was outside the bounds of the array"
whenever i excute the following console application from command line. I have Windows XP professional on my computer. Please assist. Thanks
using System;
using System.Collections.Generic;
using System.Text;
namespace _2303
{
class Program
{
static void Main(string[] args)
{
switch (args[0])
{
case "scott":
Console.WriteLine("Scott was passed in.");
break;
case "jim":
Console.WriteLine("Jim was passed in.");
break;
default:
Console.WriteLine("Done.");
break;
}
}
}
}
"Index was outside the bounds of the array"
whenever i excute the following console application from command line. I have Windows XP professional on my computer. Please assist. Thanks
using System;
using System.Collections.Generic;
using System.Text;
namespace _2303
{
class Program
{
static void Main(string[] args)
{
switch (args[0])
{
case "scott":
Console.WriteLine("Scott was passed in.");
break;
case "jim":
Console.WriteLine("Jim was passed in.");
break;
default:
Console.WriteLine("Done.");
break;
}
}
}
}