Answer: There is a possibility of repeating namespaces until the types of that namespace doesn't get conflict.
Example,
namespace Home.Hall.Television
{
class Channel1 { }
}
namespace Home.Hall.Television
{
class Channel2 { }
}
We can also divide the above example as two source files such as,
Channel-1:
namespace Home.Hall.Television
{
class Channel1 { }
}
and,
Channel-2:
namespace Home.Hall.Television
{
class Channel2 { }
}
Asked In: Spotted While Learning |
Alert Moderator