I came across some statements while surfing the .net source:
If( null != name)
If( false == check())
what is the difference between (name != null) and (Check() == false) statements from the above statements?
Can any one get me clear of this? Please.
I think this style comes with C/C++ background, where the operator
=which can also be used inside if statement, which could be used for comparison as well as assignment.The statement
if( null != name)is same asif(name != null), so as the other statementTo safeguard from mistakenly assigning the value to the left hand side, this style of check is used in C/C++,