c# dll

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

Guest

please help me to create dll from a class in c#.net and use it in other class
 
Which development tools do you have, if any? (i.e. Visual Studio .NET 2003, Web Matrix, Notepad, etc.)
 
If you create a Common Library (DLL) you just add it to your references.
and put into the uses directive space and you should be good to go
 
Save code in file "ClassLibrary1.cs"
--------------------------------------
using System;

namespace ClassLibrary1
{
public class Class1
{
public int AddIntegers(int a, int b)
{
return a+b;
}
}
}



Compile with:
 

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