top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are namespaces, and how they are used?

+1 vote
250 views
What are namespaces, and how they are used?
posted Dec 1, 2014 by Balu

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

• In .Net framework namespaces are used to manage classes.
• The Key difference between .Net namespaces and java packages is that namespace doesn’t define the physical layout of source file while java packages do.
• Namespace define logical structure of the code.
• Namespaces can be utilized via using keyword, in .net framework, many class have their namespace defined such as System.Net.
• We can create our own C# source files which can relate to multiple projects.

answer Dec 1, 2014 by Manikandan J
...