473,406 Members | 2,956 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,406 software developers and data experts.

Namespaces in a dll file

If I create multiple .dll files with the same namespace, but different
classes. Is this the same thing as creating one file with one Namespace and
all the classes in that namespace?

If so, is it better to create multiple files or just one big file?

Also, what causes ASP to look at each .dll file in the Bin folder. Even
when I make changes, they seem to get picked up.

How does ASP know to load the new .dll or the same .dll again if a change is
made?

Thanks,

Tom.
Nov 19 '05 #1
2 2542
namespaces really have nothing to do with dlls. serveral dll can use the
same namespace, or a dll can contain multiple namespaces. even a single file
can contain multiple namesspaces. namespaces are used to make object names
unique (name scope). when you add an import statement to a class file, the
compiler nicely lokks under every namespace to find an object of a given
name.

when asp compile your pages, it copies all the dll's in the bin folder to a
shadow directory, where it will compile a page. it keeps a file watcher
request on the bin folder. any file change in bin, forces a recompile of all
the pages. the compiler actually seaches the shadow bin folder for dll as it
needs them for name reference. it just opens every dll, and uses reflection
to get all the class and method names.

how many dll's you have is strictly a code management issue. there is a
performance disadvantage to having lots of dll's as it effects loading time.

-- bruce (sqlwork.com)

"tshad" <ts**********@ftsolutions.com> wrote in message
news:uC**************@TK2MSFTNGP10.phx.gbl...
| If I create multiple .dll files with the same namespace, but different
| classes. Is this the same thing as creating one file with one Namespace
and
| all the classes in that namespace?
|
| If so, is it better to create multiple files or just one big file?
|
| Also, what causes ASP to look at each .dll file in the Bin folder. Even
| when I make changes, they seem to get picked up.
|
| How does ASP know to load the new .dll or the same .dll again if a change
is
| made?
|
| Thanks,
|
| Tom.
|
|
Nov 19 '05 #2
"bruce barker" <no***********@safeco.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
namespaces really have nothing to do with dlls. serveral dll can use the
same namespace, or a dll can contain multiple namespaces. even a single
file
can contain multiple namesspaces. namespaces are used to make object names
unique (name scope). when you add an import statement to a class file, the
compiler nicely lokks under every namespace to find an object of a given
name.

when asp compile your pages, it copies all the dll's in the bin folder to
a
shadow directory, where it will compile a page. it keeps a file watcher
request on the bin folder. any file change in bin, forces a recompile of
all
the pages. the compiler actually seaches the shadow bin folder for dll as
it
needs them for name reference. it just opens every dll, and uses
reflection
to get all the class and method names.

how many dll's you have is strictly a code management issue. there is a
performance disadvantage to having lots of dll's as it effects loading
time.
So it is better to use just one .dll for my namespaces then (even though I
don't have to).

Thanks,

Tom.
-- bruce (sqlwork.com)

"tshad" <ts**********@ftsolutions.com> wrote in message
news:uC**************@TK2MSFTNGP10.phx.gbl...
| If I create multiple .dll files with the same namespace, but different
| classes. Is this the same thing as creating one file with one Namespace
and
| all the classes in that namespace?
|
| If so, is it better to create multiple files or just one big file?
|
| Also, what causes ASP to look at each .dll file in the Bin folder. Even
| when I make changes, they seem to get picked up.
|
| How does ASP know to load the new .dll or the same .dll again if a
change
is
| made?
|
| Thanks,
|
| Tom.
|
|

Nov 19 '05 #3

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

Similar topics

18
by: Steven Bethard | last post by:
In the "empty classes as c structs?" thread, we've been talking in some detail about my proposed "generic objects" PEP. Based on a number of suggestions, I'm thinking more and more that instead of...
6
by: beliavsky | last post by:
If I have a file foo.cpp defining functions f1, f2, f3, etc. and a corresponding header file foo.h, I can #include foo.h in another source file and then use those functions. This gives me access to...
3
by: Jim Heavey | last post by:
Trying to get the hang of Namespaces. I have primarly developed in VB and am transitioning to C# and the .Net Environment. I have worked a bit with Java as well in school about a year or so ago....
11
by: Random | last post by:
I'm confused about the proper use and usefulness of namespaces. I beleive I understand the purpose is so the developer can put classes within namespaces to essentially organize your code. And I...
4
by: mabster | last post by:
Hi folks, I'm just starting to come to grips with web services in general, and I'm in the process of making some test projects based on example code from MSDN etc. When I create a new ASP.NET...
5
by: Simon | last post by:
I have problem with namespaces. I have a program that consumes the web service and has for instance names space nsProgram. In this program I have defined several classes that I use for storing and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.