Referencing Visual Basic

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way I can add a reference to Microsoft.VisualBasic to a project as a whole rather than having to import it to each class

polynomial5d
 
I think you mean importing a namespace in each class. Yes, you have to do it
in each class file, but that's a good thing. It keeps the code cleaner. You
only import a namespace if you use it in that file.

Don't confuse namespaces and references. You add references per Visual
Studio project (e.g. references to other assemblies or other projects)

-Oleg.


polynomial5d said:
Is there a way I can add a reference to Microsoft.VisualBasic to a project
as a whole rather than having to import it to each class?
 
Back
Top