Compiling namespaces in c#

Sep 28 2003 4:47 AM
Dear friends i have problem in compiling namespaces. i have created a namespace having name Mcdonalds and inside it a class called burger. Then i saved this namespace in a folder in c drive called mcdonalds. ie "c:\mcdonalds\mcdonalds.cs" Now when i compiled this from the console window i get a error that this (mcdonalds.cs) does not contain a main() function. Tell me how to compile it as a namespace doesnot contain main function. When i try to access it(mcdonalds namespace) in a file c:\try.cs i get a message that this namespace does not exist. Try to solve this. Abhishek

Answers (4)