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 / 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 |
Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?
What is entity framework used for?
What does assert() method do?
1 Answers MCN Solutions, Siebel Systems,
How to use Jquery Plugins in ASP.Net MVC validation?
How does servicing work for the .net framework 3.0?
Why to use html.partial in mvc?
What is partialview in asp.net mvc?
What is disconnected scenario? : Entity framework
Changes to which portion of version number indicates an incompatible change
What is domain class model?
In Server how to check whether model has error or not in ASP.Net MVC
what is eager loading?