Including Functions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to include a function from another file, so that I don't have
to retype the code everytime?
 
You can build a class library and then reference the assembly in any
projects that require the functionality. Is that what you were after?
 
That sounds like it. How would I do it?


Tim Wilson said:
You can build a class library and then reference the assembly in any
projects that require the functionality. Is that what you were after?
 
Camper said:
That sounds like it. How would I do it?

Create a new class library project in VS.NET. Then add a reference to
the project in the "Add Reference" dialog (right click on the
"References" item in solution explorer, and select "Add Reference").

Jon
 
Thanks.

This will definitely work.



Jon Skeet said:
Create a new class library project in VS.NET. Then add a reference to
the project in the "Add Reference" dialog (right click on the
"References" item in solution explorer, and select "Add Reference").

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top