110,533
社区成员
发帖
与我相关
我的任务
分享
using System;
namespace xxx{}
//-----------------------
namespace xxx
{
using System;
}
// File1.cs
using System;
namespace Outer.Inner{ class Foo { static void Bar() { double d = Math.PI;
} }}
// File2.cs
namespace Outer{ class Math { }}
// File1b.cs
namespace Outer.Inner{ using System; class Foo { static void Bar() {
double d = Math.PI; } }}
Now the compiler searches System before searching Outer, finds System.Math,
and all is well.