Can you write a class without specifying namespace? Which namespace does it belong to by default?

Answer Posted / kirti

Yes, you can, then the class belongs to global namespace which has no name. For commercial products, naturally, you wouldn't want global namespace.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is dapper better than entity framework?

531


What is mapping in entity framework? : Entity framework

518


What type of filter does outputcacheattribute class represents?

668


Which version of the common language runtime (clr) does the .net framework 3.0 use?

561


How we can call a javascript function on the change of a dropdown list in mvc?

569






What is the use .glimpse in mvc?

593


What is presentation framework?

545


What is controllercontext?

538


How we can add the css in mvc?

586


What is .net framwork?

555


What is entity framework? : Entity framework

560


Explain .Net Framework? Why we use it?

607


Can I add mvc testcases in visual studio express?

590


What is the difference between old ADO.NET and Entity framework coding techniques?

554


How to use multiple submit buttons in asp.net mvc?

581