-
November 3rd, 2009, 12:48 PM
#1
Multiple entry points, main
Hi all,
I am developing a console application in C#. I have two different class files but if I put main in both, I am getting error about multiple entry point to the project.
Now, if I remove the main in one file, the functions under it, give the following error:
Methods must have a return type
Many thanks,
Abhi
-
November 3rd, 2009, 02:28 PM
#2
Re: Multiple entry points, main
Why you are creating multiple entry points in the first place? You should keep your class files separate, there is no reason to plop them into your Program.cs file.
-
November 4th, 2009, 02:09 AM
#3
Re: Multiple entry points, main
Which Main() you want to use can be set in project's properties on Application tab in item Startup object.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|