Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

if u add an import stmt to an application
u can do the same by adding reference to the apllication

then what is the diff bet these two ?

Answer Posted / praveen n h

when you add the dll reference to an application. It means
that you can use the classes in that namespace.
But if you don't mention the imports(vb)/using(c#) statement
wherever in your application you are referring to that class
you will have to mention the complete class name.
If you use the imports(vb)/using(c#) statement you can
directly mention the class name to use it.

for example
'with imports
imports test 'test is the DLL and it has addtion class in it
.....
class myclass
{
'to create an object of the addition class here is the stmt.
......
addition a = new addition()
.......
}


Without imports

class myclass
{
test.addition a = new test.addition()
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is entity framework used for?

1003


what is deferred loading(lazy loading)?

970


What are the components of the .net framework.

1002


Explain what platforms does the .net framework run on?

980


What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?

976


i want to take the fast track training on >net Frame work and work flows and share point could you tellme the good institutes for that cources

1961


What is page life cycle?

932


What filters are executed in the end?

983


What is tempdata?

1004


Do I need microsoft .net framework?

946


Explain linq to entities? : Entity framework

996


what is csdl?

953


What are the 2 popular asp.net mvc view engines?

979


How to use multiple submit buttons in asp.net mvc?

1109


What are the two ways to add constraints to a route?

931