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

When will the .net framework 3.0 be released?

0 Answers  


im software developer (.net). i goth1b (usa )appointment 30th of this month . chennai people asking responsbilities .can anyone wht responsbilities i need say . plz help me

2 Answers  


How do I change the permission set for a code group

1 Answers   4Cplus,


how do you query in entity model when the result has a join from from different database other than the entity model?

0 Answers   Microsoft,


If Controller is not there in MVC Pattern what happens?

2 Answers  


About namespaces ?

3 Answers   MMTS,


Explain ASP.NET MVC Identity and Security?

0 Answers  


creating crystal reports in asp.net & vb.net

1 Answers  


How to Insert a TextBox value in to Sql database using C#.Net coding

2 Answers  


how do you mark a property as required? For example, for a project, the name is a required field.

0 Answers   Microsoft,


How can Bitwise OR operator reresents in .Net?? To which alias name a variable points to if it is declared as "int" variable??

1 Answers  


How the ‘page lifecycle’ of ASP.Net MVC does works?

0 Answers  


Categories