<分区>
我见过类似以下无关行的代码:
Console.Write(myObject?.ToString());
return isTrue ? "Valid" : "Lie";
return myObject ?? yourObject;
int? universalAnswer = 42;
C#8+中好像还有更多类似的
public static Delegate? Combine(params Delegate?[]? delegates)...
string? value = "bob";
问号的所有用法是否相关或不同?它们分别是什么意思?