I have 2 same named classes defined in 2 different namespaces and I want to include both the namespaces as using statement in my c# file, Like below:
using A.B;
You can use fully qualified class name with namespace
if (check) { var foo = new A.B.Foo(); } else { var foo = new C.B.Foo(); }