PC Review


Reply
Thread Tools Rate Thread

Application Size

 
 
=?Utf-8?B?RGVubmlz?=
Guest
Posts: n/a
 
      23rd Oct 2004
If I have an import statement such as Imports System.Reflection in my project
code and don't actually need the classes from this imports, does it increase
the size of my final application.exe. In other words, does leaving imports
that are not needed in the project matter much?
--
Dennis in Houston
 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      23rd Oct 2004
"Dennis" <(E-Mail Removed)> schrieb:
> If I have an import statement such as Imports System.
> Reflection in my project code and don't actually need the
> classes from this imports, does it increase the size of
> my final application.exe.


No.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


 
Reply With Quote
 
Shiva
Guest
Posts: n/a
 
      23rd Oct 2004
No, it doesn't.

"Dennis" <(E-Mail Removed)> wrote in message
news:879D91E2-C0F2-41AA-95DF-(E-Mail Removed)...
If I have an import statement such as Imports System.Reflection in my
project
code and don't actually need the classes from this imports, does it increase
the size of my final application.exe. In other words, does leaving imports
that are not needed in the project matter much?
--
Dennis in Houston


 
Reply With Quote
 
Larry Serflaten
Guest
Posts: n/a
 
      23rd Oct 2004

"Dennis" <(E-Mail Removed)> wrote
> If I have an import statement such as Imports System.Reflection in my project
> code and don't actually need the classes from this imports, does it increase
> the size of my final application.exe. In other words, does leaving imports
> that are not needed in the project matter much?


Imports is a desgin time convenience allowing you to reduce your typing
by promoting outside namespaces into your project. It does not equate
to additional code, but it does add clutter to your local scope (eg. Intellisense)

With scores of imported namespaces, you would have to resolve any name
confilcts that araise between the different namespaces, which then defeats the
purpose of including the Import statements. So, the better solution would
be to import only those namespaces that you actually use....

LFS


 
Reply With Quote
 
=?Utf-8?B?RGVubmlz?=
Guest
Posts: n/a
 
      23rd Oct 2004
Thank you for a GREAT reply. That answers my question as well as the
additonal question I had on why not include all imports.

"Larry Serflaten" wrote:

>
> "Dennis" <(E-Mail Removed)> wrote
> > If I have an import statement such as Imports System.Reflection in my project
> > code and don't actually need the classes from this imports, does it increase
> > the size of my final application.exe. In other words, does leaving imports
> > that are not needed in the project matter much?

>
> Imports is a desgin time convenience allowing you to reduce your typing
> by promoting outside namespaces into your project. It does not equate
> to additional code, but it does add clutter to your local scope (eg. Intellisense)
>
> With scores of imported namespaces, you would have to resolve any name
> confilcts that araise between the different namespaces, which then defeats the
> purpose of including the Import statements. So, the better solution would
> be to import only those namespaces that you actually use....
>
> LFS
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.Net & C# WIndows application exe size Ily Microsoft Dot NET Framework Forms 5 16th Nov 2005 04:00 PM
Set Ms Word application size to equal Outlook application size ? Harold M Little Microsoft Outlook VBA Programming 2 23rd Sep 2005 02:16 AM
Application size in VBA RzB Microsoft Access VBA Modules 2 26th Aug 2005 04:20 PM
Help needed! Application window size changes when porting application from XP to EXP Avi Rot Windows XP Embedded 5 29th Oct 2004 07:18 PM
Re: Max Heap Size for a C# Application Lee Alexander Microsoft C# .NET 12 13th Aug 2003 06:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:11 PM.