Last post Aug 10, 2010 12:27 PM by BlogDog
Aug 09, 2010 01:58 PM|BlogDog|LINK
As a new developer, I don't understand when and what Imports to use at the top of the code behind file. I understand they allow acces to different namespaces and classes which allows different functionality (I believe), but how do I know when I should be
Would it be good practice to just add them on every page (or in the code behind of master page), something like this:
and then I would always have it covered, or does that slow the system down?
Aug 09, 2010 02:20 PM|nick5454|LINK
the compiler will ignore namespaces not used. If you add a class and it's not in one of the listed namespaces at the top of your code file(Imports) then you must add it.
this add in works wonders for cleaning your code up and adding references when needed. tons more
http://www.jetbrains.com/resharper/ incredible tool.
Aug 10, 2010 12:27 PM|BlogDog|LINK