【发布时间】:2011-08-27 06:35:04
【问题描述】:
using Foo.Uber;
namespace MyStuff.Foo
{
class SomeClass{
void DoStuff(){
// I want to reference the outer "absolute" Foo.Uber
// but the compiler thinks I'm refering to MyStuff.Foo.Uber
var x = Foo.Uber.Bar();
}
}
}
我该如何解决这个问题?只是在我的命名空间中移动 using 语句没有帮助。
【问题讨论】:
-
类似使用 Foo.Uber = FooUber; => 见stackoverflow.com/questions/262469/namespace-collisions
标签: c#