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 |
If background completes its processing will it wait for foreground threads?
What is main objective of asp.net mvc 4 or what is new in mvc4 ?
i have done enough testing in life but now stated developing intereset in development work,Can i think of entering into development work that too in >Net after more then 4 years of testing experiece?
What is MSIL, IL, CTS?
What is edm in entity framework?
What is the use .Glimpse in ASP.Net MVC
How to free the memory that is not used by an object in garbage collection?
What was the problem in traditional component why side by side execution is supported in .net ?
What are HTML Helpers, AJAX Helpers in ASP.Net MVC?
Why doesn't the .NET runtime offer deterministic destruction
Can I remove .net framework?
What is .net framework & its benefits?