0

how come a namespace includes in the header a more specific namespace?
ex:

using System.Runtime;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using System.Security;

namespace System
{

    public class Object
    {
      // Class code
    }
}

Shouldn't be like this:

namespace System
{

 namespace Runtime
  {
     namespace ConstrainedExecution
     {

         public class Object
         {
           // Class code
         }
      }
   }
}
3
Contributors
4
Replies
21
Views
4 Years
Discussion Span
Last Post by ddanbe
0

All the using statement does is allow you to use the classes in that namespace without having to give the fully qualified name. So, for example, the using System.Runtime lets you used the class GCSettings (again, for example) without having to type System.Runtime.GCSettings

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.