Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
Csharp Language Command Line Arguments and General Question
Yalavarthi Gopinath
Feb 16 2016 10:10 PM
286
Reply
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);
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
how to avoid duplicate names
install the .exe to run as a Windows Service