Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 169311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:36:30+00:00 2026-05-11T12:36:30+00:00

What is the difference between add your imports inside the NameSpace or Outside. Is

  • 0

What is the difference between add your imports inside the NameSpace or Outside. Is there a difference in the way assemblies are loaded?

Using System; namespace test {  } VS namespace test { using System;  } 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T12:36:30+00:00Added an answer on May 11, 2026 at 12:36 pm

    Putting the the using statement inside the namespace makes it local to that namespace, outside the namespace means anything in the file can reference it. The complier will always search the inner most namespace first.

    Stylecop promotes putting the ‘using’ statement inside the namespace and Microsoft claims that placing the using statement inside the namespace allows the CLR to lazy load at runtime. However there is a number of tests that have questioned this.

    Using System; namespace test {   //Can Ref System }  namespace test2 {     using System2;     //can Reference anything from test2, System2 and System        //will look for a reference in test, then System2 then System   } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was reading this article Build Your First Cloud Application Using Visual Studio 2010
Here is my dilemma, I am building a POS system for a pretty large
My one ASP.NET web site uses two different business object class libraries. There is
Hey there! now first of all some might want to shout that there are
I'm currently developing a small customer relationship and invoice management system for my client.
I inquired on VB.NET 's erratic behavior of treating all numerics as signed types
I have some shared/dynamic libraries installed in a sandbox directory. I'm building some applications
I have a multithreaded server application that needs mutex locks over some shared memory.
I am taking my first steps with Sencha touch. The results are just what
I'm aware of two methods to write code hints in CFScript. I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.