Confusing If Statement?

前端 未结 13 883
-上瘾入骨i
-上瘾入骨i 2020-12-20 13:03

I always use If statement (In C#) as (1. Alternative);

if (IsSuccessed == true)
{
   //
}

I know that there is no need to write \"== true\"

13条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-20 13:11

    More typing means more chances for bugs. Option 2 all the way...

提交回复
热议问题