Imports? Importance, Advantages and Disadvantages

The Project Properties Imports are the list of all class that will be used in the project for referencing classes/dlls.

I just want to clarify something if there is any article in MS that will discussed the advantages / disadvantages and ways of importing classes.  And also the best method to do for that. (In Script and/or in Project Properties.)

I also need to know what will be the effect for the Project of Importing in Project Properties vs Code-behind.

TIA




Answer this question

Imports? Importance, Advantages and Disadvantages

  • PRSDeveloper

    First Class Imports and Project References are two different animals...references are neccessary to access objects outside thier own Project....

    Imports are used as a short hand method of programming....and are NOT neccessary...




  • racka4279

    Yes of course, I am familiar with that.  Classes needs to reference first in the project before importing in on a code or/in project properties imports section.

    What I want to know is... Is there any issue (big deal) for a project that uses that Project Properties Imports section versus to the project that uses the inline code for imports (eg. Imports MyClass.Procs).

    I need to know the best way for this scenario.

    TIA

  • Imports? Importance, Advantages and Disadvantages