它們兩者之間有什麼區別。我以爲他們是一樣的,但今天我意識到他們不是。剃刀中的()(括號)和{}(大括號)之間的區別
爲什麼這是正確的
@(Model.WillAttend == true ?
"This will be an exciting party with you" :
"So sorry. You'll lose the beeer")
,這是不是:
@{Model.WillAttend == true ?
"This will be an exciting party with you" :
"So sorry. You'll lose the beeer"}