通常,问号的主要用途是有条件的,x ? "yes" : "no".
x ? "yes" : "no"
但是我已经看到了它的另一个用途,但是找不到?例如运算符的这种用法的解释.
?
public int? myProperty { get; set; }
.net c# asp.net types
.net ×1
asp.net ×1
c# ×1
types ×1