I'm new to C# and I'm trying to learn to usage of DLLs. I'm trying to wrap my objects in a DLL, and then use it in my program.
public class Foo // its in the DLL
{
public void Bar()
{
SomeMethodInMyProgram();
}
}
So I try to pack this to a DLL but I can't, because compiler doesn't know what the SomeMethodInMyProgram() is.
I would like to use it like:
class Program // my program, using DLL
{
static void Main(string[] args)
{
Foo test = new Foo();
test.Bar();
}
}