Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Create a Calculator.cs file on desktop.

Inside it add the following code.


Namespace calculator
{
public class mathoperation
{
public int substractNumbers(int a, int b)
{
return a-b;
}
}
}

now go to start menu and in command prompt type cmd


Give location of file
C:\Desktop>csc /t:library calculator.cs
t- Target
Now on desktop we can see library file or dll.

You might also like