I’ve written a class…
namespace SharpQuery
{
public static class SharpQuery
{
public static IEnumerable<HtmlNode> Load(Uri uri)
{
// ...
But when I want to call the Load method from inside a different namespace I have to write SharpQuery.SharpQuery.Load even if I put using SharpQuery; at the top. Why is that? How do I get rid of the need to specify the namespace?
Eric Lippert wrote a series of blog posts saying that you shouldn’t have namespaces and classes with the same names. Links here: http://blogs.msdn.com/b/ericlippert/archive/tags/namespaces
He explains it much better than I could.