473,320 Members | 1,958 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,320 software developers and data experts.

Reuseable Class Library

I'm planning to create a class library containing code that I can resuse in
all of my apps. I would probably put these classes into a namespace that
contained my company name and then the word "reuseable".

Would I put these classes in their own separate file? If so, how would I
include it in each respective project? The references I see so far in C#
are all .dll files, but these would just be text I guess.

Can someone shed some light on this for me? Thanks!
Nov 16 '05 #1
3 1210
Depends on how you want to reuse them. There are two alternative.

1) Consider your reusable code as a blackbox.
2) Allow other projects to use the source and modify it as needed.

If you wanted your code to be a blackbox, you would simply have a project
that contains all the code libraries you want. The resulting binary would
then be used in other projects. All you have to do is add a reference to
your library assemblies in each project. You may also need to include the
binaries with your projects unless you plan to add them to the GAC.

If you want the code to be modifiable, then you can simply just add those
code files to your other projects.
"Curt Emich" <ce****@comcast.net> wrote in message
news:7J********************@comcast.com...
I'm planning to create a class library containing code that I can resuse in all of my apps. I would probably put these classes into a namespace that
contained my company name and then the word "reuseable".

Would I put these classes in their own separate file? If so, how would I
include it in each respective project? The references I see so far in C#
are all .dll files, but these would just be text I guess.

Can someone shed some light on this for me? Thanks!

Nov 16 '05 #2

I probably want to go "black box". So I would just compile a bunch of
.cs files into a .dll?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
Jax
Yeah thats it. If you have VS just start up a class library project and chuck in as many .cs files as you want into the solution and hit compile
Then in the project/solution that will use you "blackbox" go to references -> add and browse to your .dll
Nov 16 '05 #4

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

Similar topics

3
by: Xero | last post by:
Hello. If I have declared a varible in an event handler, can I ues it again in the same form but in another event handler? Thanks. -- Xero http://www.chezjeff.net My personal web portal
2
by: zefciu | last post by:
In the tutorial there is an example iterator class that revesrses the string given to the constructor. The problem is that this class works only once, unlike built-in types like string. How to...
3
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005, .net 2.0, Win2k server for a Windows applcaiton. I have a main application where there is a a form and the codes that I would like to make it reuseable by other applications....
0
by: sukatoa | last post by:
Could anybody here recommend me what is the best ResultSet class to be used on 24/7 System?
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.