Thread: namespace query
View Single Post
  #1 (permalink)  
Old August 9th, 2016, 01:37 PM
Robguay Robguay is offline
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2016
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default namespace query

Need some clarification when it comes to namespaces

Code:
using system;
using static System.Console;
using System.Collections.Generic;
If I am calling up "System" (using System) and "Console" is a part of "System" why do I have to call up "using static System.Console"? (not sure if "call up" is the right verbiage, or is it "including"?). Same thing with "Collections.Generic" please review below.
Code:
namespace System
{
     namespace Console
     {
      
     }
     namespace Collections
     {

          namespace Generic
          {

          }

     }

}
So I visualize that when I bring in System which is the parent all the children would come along for the ride.

Again in layman's terms could I get a better understanding of how namespace works.

Thanks
Reply With Quote