Put your class in different namespace

Sourav.Kayal
Posted by Sourav.Kayal under C# category on | Points: 40 | Views : 615
using System;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;
using System.Xml;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;

namespace Anamespace
{
class A
{
}
}
namespace Bnamespace
{
class B
{
}
}

namespace BlogProject
{
class Program
{
static void Main(string[] args)
{
Anamespace.A a = new Anamespace.A(); //Create object of A class
Bnamespace.B b = new Bnamespace.B(); //Create object of B class
Console.ReadLine();
}
}
}

Comments or Responses

Login to post response