473,387 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

two simple questions

Hi
I have got three questions ,sorry if they are a little long:

1) Dose it really matter if I have using statements at the begining of my
codes that I don't use its classes ? dose it really hug memory in runtime??

2) I know what is a namespace and what is it used for ,but I strill don't
know what is the best way of naming your project and solutions in it and
what's the role of namespace when we have multiple solutions in one project
Nov 16 '05 #1
1 1103
" Newbie (C#,Asp.net)" <ne****@microsoft.com> wrote in message
news:ez**************@tk2msftngp13.phx.gbl...
Hi
I have got three questions ,sorry if they are a little long:

1) Dose it really matter if I have using statements at the begining of my
codes that I don't use its classes ? dose it really hug memory in
runtime??
The using statements are there to allow you to type less. When the C#
compiler emits the IL it always fully qualifies type names. Therefore, if
you don't use a type from the namespace the C# compiler will not include
that namespace in teh assembly. More importantly, it will optimize any
assembly references that you don;t use out of the dependency list for the
assembly.

2) I know what is a namespace and what is it used for ,but I strill don't
know what is the best way of naming your project and solutions in it and
what's the role of namespace when we have multiple solutions in one
project


Umm, projects are in solutions not the other way around. But aside from
that, the solution name is irrelevant as far as the built code is
concerned - they simply act as a bag to carry around related projects. Pick
a convention and stick to it.

Projects names on the other hand act as the default for the name of the
assembly. Name them as you want your assembly named. For non-system
assemblies MSFT tend to use <company>.<technology>.<area> for their assembly
names. If this is what MSFT is doing it becomes what people expect when they
use components. Therefore its probably a good idea to follow the naming
convention that MSFT use.

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Geoff Cox | last post by:
Hello, I am trying to print out the array values for a second time but get error on page message? Thanks Geoff <html>
1
by: Proteus | last post by:
Any help appreciated on a small perl project I need to write for educator/teaching purposes. I have not programmed perl for some time, need to get up to speed, maybe some kind souls hrere will help...
7
by: javedna | last post by:
Hi guys Ive got a simple problem, im designing an online questionnaire and on submission the coding that I have used to validate whether a user has filled in all the questions is supposed to...
17
by: Chris M. Thomasson | last post by:
I use the following technique in all of my C++ projects; here is the example code with error checking omitted for brevity: _________________________________________________________________ /*...
4
by: maheshgupta0248 | last post by:
Hi all, Im a newbie in php, started learning php on my own. I want to create small website using php, that contains links for two simple webpages > C questions > C++ questions C questions...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.