我有时会看到youtube上的人写作
if(something) { ...; }
代替
if(something == true) { ...; }
使用这样的if语句有什么规则?是因为if语句默认检查是否为真?
c# if-statement
c# ×1
if-statement ×1