The second example is what I heard, called the “Yoda conditions”; "False, this method return value should be." This is not how you would say it in English, and therefore among English-speaking programmers, he usually looked down.
, . (, , ), , , "" ( , bool to bool), . , :
if(Class.HasSomething())
{
// do somthing
}
else
{
// do something else
}
, if() , , if(Class.HasSomething() == true), CLR if((Class.HasSomething() == true) == true). , , ( , , , , 2 ).
, , not if(!Class.HasSomething()) false: if(Class.HasSomething() == false). , ( , ), , false, , .