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 ?



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

Answer / 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

More Dot Net Framework Interview Questions

How does the .net framework 3.0 relate to the .net framework 2.0?

0 Answers  


Which version of the common language runtime (clr) does the .net framework 3.0 use?

0 Answers  


How the color of selected menu item will be changed in asp.net menu item?

1 Answers   Cognizant,


What are the Core features of ASP.NET MVC?

0 Answers  


what is ssdl?

0 Answers   Microsoft,


How Garbage Collector identifies the objects which are not in use?

6 Answers   EXL, Honeywell, Microsoft, Tech Mahindra, Tesco,


What are the 2 ways of adding constraints to a route?

0 Answers  


Explain bundle.config in mvc4?

0 Answers  


How can I tell what .net framework is installed?

0 Answers  


What are advantages of Dependency Injection (DI) in ASP.Net MVC?

0 Answers  


What is partialview in asp.net mvc?

0 Answers  


When was the first version of .NET released

1 Answers  


Categories