Automatic Generation of Import Statements

bobw2829

Member
Joined
May 25, 2007
Messages
7
Programming Experience
3-5
Hey All,

New to Visual Studio and to these there forums. Just curious if there's a hot button to automatically add class imports. Say for example, I create an DirectoryEntry object without importing DirectoryServices class. Is there a way the VS can determine the current class needs an import of DirectoryServices and generate this?

Thanks,
Bob
 
Not automatically, but available namespaces is listed for referenced assemblies in Project Properties, References tab, where you can just click the checkboxes to have them imported.
 

Latest posts

Back
Top