Hi peeps
I want to create some namespaces and dlls to encapsulate some common
functionality. Here's what I want.
Me
Me.CompanyA
Me.CompanyA.Bus inessObjects
Me.CompanyB.
Me.CompanyB.Bus inessObjects
Me.Utils
Me.Utils.Securi ty
...you get the picture. Ideally I'd like each namespace to be in a seperate
DLL, so that I can just reference the DLLs I need in an app, rather than 1
big one.
My question is, how do I create all these namespaces. Should each namespace
be in a seperate project? And when creating a new project, do I just change
the namespace to whatever I want, eg. Me.Utils.Securi ty.
Once compiled, do I just rename the created dll to the name of the namespace?
Cheers for any info
Dan 1 1451 My question is, how do I create all these namespaces. Should each namespace be in a seperate project?
It doesn't have to be that way, but if that's what you want, sure.
And when creating a new project, do I just change the namespace to whatever I want, eg. Me.Utils.Securi ty.
Yes
Once compiled, do I just rename the created dll to the name of the namespace?
Better yet, set the assembly name to be the same as the namespace
before compiling so the DLL is correctly named to begin with.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rob G |
last post by:
Hi,
I am having a problem finding a good explanation of exactly how Namespace
works. I am not clear on how it uses directories (if it does at all),
contains classes, after I complile a cs file how does a Namespace come into
play, or do I even need to have one?
Any info would be greatly appreciated.
Thanks so much.
|
by: M Shafaat |
last post by:
Hi,
I want to develop a number of generic components which I intend to use in
different applications. Is it a good idea to put all these generic
components in one and the same namespace, e.g. named GenApplCtrls, without
any regard to whether or not the components have any functionality in
common?
Which principles should be considered when deciding which classes to belong
to a namespace?
|
by: Dylan Parry |
last post by:
Hi,
I've started to get a bit confused by namespaces and hierarchical
organisation in general. What I want to do is something like this:
Namespace MyNamespace
|
|- Class Foo
|
|- Namespace MyNamespace.Foo
|
by: redeagle |
last post by:
I'm wondering what the best practice is for creating a WinApp "wizard" that
contains 4 or 5 "steps". Options so far are
1) Single WinForm making various controls visible/non visible at the
different steps(although that may get cluttered in the design environment)
2) Create multiple WinForms (don't really know any pros or cons of this
method)
3) Use a tabbed page (although I don't want to see any tabs)
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |