文件范围的命名空间
版本新特性 / C# 10.0
无参数结构体构造函数
记录中的密封 ToString
常量内插字符串
嵌套属性模式
结构体的 with 表达式
文件范围的命名空间
全局 using 指令
namespace
Samples
.
Versions
.
Version10
;
struct
Point
{
public
int
X, Y;
}
This
change allows you to
set
a
namespace
for
the entire file without having to indent.