E.g.
Class1.cs
namespace UsingStatic1
{
public class Class1
{
public static int Add(int x, int y)
{
return x + y;
}
}
}Program.csusing static UsingStatic1.Class1;
namespace UsingStatic
{
class Program
{
static void Main(string[] args)
{
int i = Add(20, 30);
}
}
} UsingStatic1.Class1 is a non-static class and value of i will be 20+30=50;1059
