Confusing If Statement?

前端 未结 13 914
-上瘾入骨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:22

    i use the first when i started programming but kinda get used to the second option. It also saves time type extra letters.

提交回复
热议问题