新版本的变更 / C# 10.0
with 语句与结构
嵌套属性模板
常量字符串的插值
结构及其字段的初始化
整个文件的命名空间
全局 using 指令
密封的 ToString 方法
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.