Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
I got error when i used const keyword in Main Method
sameer shaikh
8y
237
1
Reply
Class Sample
{
public const int i = 3; //
public static void Main(string[] args)
{
public const string name = "sameer";
public const int id = 10;
}
}
if remove public in Main method then every thing is well. please let me know how is it?
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
how to compile exe?without source code
Three-Tier architecture Description