TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Y G
NA
236
30.4k
Csharp Language Command Line Arguments and General Question
Feb 16 2016 10:10 PM
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);
}
}
Reply
Answers (
4
)
how to avoid duplicate names
install the .exe to run as a Windows Service