<p>In c#, is there any difference in the excecution speed for the order in which you state the condition?</p>

<pre><code>if (null != variable) ...
if (variable != null) ...
</code></pre>

<p>Since recently, I saw the first one quite often, and it caught my attention since I was used to the second one.</p>

<p>If there is no difference, what is the advantage of the first one?</p>

I guess this is a C programmer that has switched languages.
In C, you can write the following:
```
```
int i = 0;
if (i = 1)
{
    ...
}
```
```
Notice the use of a single equal sign there, which means the code will assign 1 to the variable i, then return 1 (an assignment is an expression), and use 1 in the if-statement, which will be handled as true. In other words, the above is a bug.
In C# however, this is not possible. There is indeed no difference between the two.