Build with the following command-line switches: csc /t:library DllTestServer.cs : DLL « Development Class « C# / C Sharp






Build with the following command-line switches: csc /t:library DllTestServer.cs

 
public class DllTestServer
{
    public static void Foo()
    {
        System.Console.WriteLine("DllTestServer.Foo (DllTestServer.DLL)");
    }
}

 








Related examples in the same category

1.Compile cs file to DLL
2.Load system dll library
3.Create DLL library
4.Create DLLCreate DLL