// In this program we have created our own namespace in c#
using System;
using anuj;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
a ob = new a();
ob.display();
Console.Read();
}
}
}
namespace anuj
{
public class a
{
public void display()
{
Console.WriteLine("this is a function call");
}
}
}
using System;
using anuj;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
a ob = new a();
ob.display();
Console.Read();
}
}
}
namespace anuj
{
public class a
{
public void display()
{
Console.WriteLine("this is a function call");
}
}
}
Comments