Original Post
Let us consider the following C# program:
namespace Huge
{
class Talk
{ }
class DoNOT
{ }
}
-----
namespace KITTen
{
class Moreover
{ }
class DoNOT
}
-----
using KITTen;
using Huge;
DoNot.Method();
Would that code simply cause an error? In other words, if you have two namespaces with the same class name, and you use the "using" keyword for both of them, and try to access a class, how will it know of which namespace it will call? I am guessing this results in an error, correct? Also, if you have a group of people working on a project, is it the point of namespaces to group code into sections like ByMike, ByTim, or ByGraphics, BySoundCrew, et cetera? That way each group or person can operate in their own namespace without ever worrying about names getting mixed up? How would you avoid the *possible* error that was my original question, if it is an error? Any namespace tips in general to share? Thank you.