1. What is the difference between the class that is added by using
a.)Project Name=>Add=>New Item=>class
b.)Solution =>Add=>New Item=>visual c# class
which class of the above we should use while dealing with console applications??
2. I tried to execute the below code using Command Line Arguments but it throws an error as below:
Error: Doesnot containg static Main Method suitable for entry point
using System;
class Myclass
{
static void Main(string[] args)
{
foreach(string str in args)
Console.WriteLine(str);
}
}