ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net Framework
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
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 ?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
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
Praveen N H
 

 
 
 
Other Dot Net Framework Interview Questions
 
  Question Asked @ Answers
 
How do you do role based security ? Accenture1
What is CLR? How it will work?  1
Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables?  1
What are the contents of assembly?  2
What are the mobile devices supported by .net platform  1
Can we look at the IL for an assembly?  2
About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use ? MMTS2
what is MetadData?. What is CTS? Type of Join in SQL Server? What is diffrence between Primary Key and Unique Key? FutureSoft4
what are the different stepts to create shared assemblies?  1
what is an assembly?  10
What are the ways to deploy an assembly?  1
Which is the best institute in hyderabad to learn DotNet? Infosys74
what is .net? IBM12
what is Thread Priority?  1
what is a round trip?What is a postback? Bosch2
I am confusing about reflection.can any one tell about REFLECTION with example? TCS1
What is MSIL, IL, CTS?  3
What is Global Assembly Cache (GAC) and what is the purpose of it?  2
Difference between <connectionstring> and <appsettings>  3
please tell me the best book of asp.net in the markit. which explain in simple and detail.  2
 
For more Dot Net Framework Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com