|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
PP: Identifying list of unwanted USINGsIn CS project, we use "using" statement to make reference to other namespaces. For example: using System; using System.Data; using System.Configuration; At times, there a is a chance that few of them get added by mistake or must have got added for some need and developers must have forgotten to remove them back when not required :) Question: 1. Is there any easy way (may be some tool) to identify if any of these namespaces are orphan (not relevant to that CS file) and can be removed 2. What are the dis-advntages of leaving them there as it is. Any performance issues? Hello prabh***@hotmail.com,
For looking the unused "using" I recomend ReSharper tool (www.jetbrains.com) Show quoteHide quote > In CS project, we use "using" statement to make reference to other Michael Nemtsev :: blog: http://spaces.msn.com/laflour> namespaces. For example: > using System; > using System.Data; > using System.Configuration; > At times, there a is a chance that few of them get added by mistake or > must have got added for some need and developers must have forgotten > to > > remove them back when not required :) > > Question: > 1. Is there any easy way (may be some tool) to identify if any of > these > namespaces are orphan (not relevant to that CS file) and can be > removed > > 2. What are the dis-advntages of leaving them there as it is. Any > performance issues? > --- WBR, "At times one remains faithful to a cause only because its opponents do not cease to be insipid." (c) Friedrich Nietzsche > No. They are nothing but compiler instructions.> 2. What are the dis-advntages of leaving them there as it is. Any > performance issues? Show quoteHide quote >
Other interesting topics
Effective strategy for using VSS in a development team?
How to set build order? Getting Event of Lock Windows OS Application Idle - Good or bad practice? by reference and by value Getting text box value on key press? Blogging sites How to: Access the Managed HTML Document Object Model Finding if a column is unique in a dataset Visual C# FileIO and Environment Permission |
|||||||||||||||||||||||