查看??它所说的定义,如果它不是null或右操作数,则返回左操作数.但为什么这不起作用?
??
int? i = null; string s = i ?? "some string";
是否要求可空类型匹配正确的操作数类型?
c# nullable
c# ×1
nullable ×1