摘要: !(null forgiving operator) 首先加上nullable的声明,否则将没有相关提示。 #nullable enable namespace DotNet_5._0_p7 { class Pet { public Pet (Cat? cat, Dog dog) { Cat = c 阅读全文
posted @ 2021-02-01 18:19 Dirt·in·firework 阅读(421) 评论(0) 推荐(0)