项目内遇到个同事,以前听说是写 Java 的 这是现在他写的 C#,大概是这个样子的 Foo.cs
namespace xxx.xxx.util.CFoo {
public class Foo {
}
}
Bar.cs
using xxx.xxx.util.CFoo
namespace xxx.xxx.tuil.CBar {
public class Bar {
Foo foo = new Foo ();
}
}
看他在那边写,配合编辑器自动填 using 无缝衔接 Java 了属于是(乐)