Is there any problem using unnecessary namespaces?

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Is there any problem using unnecessary namespaces?

 
0
  #1
Feb 27th, 2008
I dont clean the unnecessary namespaces that .net automatically generates. Is there any problem with that?
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Is there any problem using unnecessary namespaces?

 
0
  #2
Feb 27th, 2008
No, there are no performance hits, no overhead, or anything UNLESS you actually use the namespace.

So having System.IO and not using any reference to it does nothing towards your application. It just allows the application to use the namespace, if it is needed.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 118
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: Is there any problem using unnecessary namespaces?

 
0
  #3
Feb 27th, 2008
What is your reference SheSaid ? . Do you have any resources about it? Article or so?
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Is there any problem using unnecessary namespaces?

 
0
  #4
Feb 27th, 2008
I've looked it up before when I started with VS because it imported more than 20 that I don't use. Let me find it.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Is there any problem using unnecessary namespaces?

 
0
  #5
Feb 27th, 2008
http://books.google.com/books?id=4JI...QNDph-p1oTd5GU

Just do a search on google for like: asp.net namespace overhead
Last edited by SheSaidImaPregy; Feb 27th, 2008 at 10:18 am.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC