Post by Admin on Jun 5, 2014 22:02:25 GMT -5
using System;
class Program
{
public static void Main()
{
ProjectA.TeamA.ClassA.Print();
}
namespace ProjectA
{
namespace TeamA
{
class ClassA
{
public static void Print()
{
Console.WriteLine("Team A Print Method");
}
}
}
}
using System;
using ProjectA.TeamA;
class Program
{
public static void Main()
{
ClassA.Print();
}
namespace ProjectA
{
namespace TeamA
{
class ClassA
{
public static void Print()
{
Console.WriteLine("Team A Print Method");
}
}
}
}
using System;
using PATA = ProjectA.TeamA;
using PATB = ProjectA.TeamB;
class Program
{
public static void Main()
{
PATA.ClassA.Print();
PATB.ClassA.Print();
}
namespace ProjectA
{
namespace TeamA
{
class ClassA
{
public static void Print()
{
Console.WriteLine("Team A Print Method");
}
}
}
}
namespace ProjectA
{
namespace TeamB
{
class ClassA
{
public static void Print()
{
Console.WriteLine("Team B Print Method");
}
}
}
}