Ive got a project that uses the Google .NET API.
It has a root namespace of ‘Google’ (unsuprisingly).
Ive just created a class with the following namespace
namespace Foo.Google{
class Bar{ }
}
Obviously this is now going to ‘conflict’ as Google is ambiguous (precedence is actually given to Foo.Google).
Other than just renaming Foo.Google to Foo.Goog, are then any other cleverer approaches?
No, there are no cleverer approaches. Avoiding namespaces conflicts by not using the same namespaces of the third party code which you use is the way to go.