currentPriceから100... _
int price = currentPrice > 100 ? currentPrice : 100
int price = Math.Max(currentPrice, 100)
currentPriceこの質問を提起したのは、他のスレッドが変数を編集できるコンテキストについて考えていたからです。
最初のケースでは...priceよりも低い値を取得でき100ますか?
私は次のことを考えています:
if (currentPrice > 100) {
//currentPrice is edited here.
price = currentPrice;
}