To reference type in different hierarchical branch we can use the partial qualified name.
using System;
namespace A
{
namespace B
{
class classAB
{
}
}
namespace C
{
class classC : B.classAB
{
}
}
}
class Program
{
static void Main(string[] args)
{
}
}