Take one Class Library and Build it
namespace Example
{
public class sample
{
public int math(int i,int j)
{
return (i + j);
}
}
}
Now you want to Use math(or any thing from the Example NameSpace) method in your forms/Application
You should Add the Reference(from Bin folder of Example classlibrary) and Mention Namespace Name so that It can be Included li
//Importing the Example Namespace Classes or any thing from the Namespace
using Example;//Region of code can be access
Public class mathOperations
{
static void Main(string[] args)
{
//Creating Object for Sample Class
sample sa = new sample();
//object with Parametarized Methods calling
Console.WriteLine("Adding Two Numbers: " + sa.math(10, 20));
Console.ReadLine();
}
}