C# Post Increment : <p>While I am testing post increment operator in a simple console application, I realized that I did not understand full concept. It seems weird to me:</p>

<pre><code>int i = 0;
bool b = i++ == i;
Console.WriteLine(b);
</code></pre>

<p>The output has been false. I have expected that it would be true. AFAIK, at line 2, because of the post increment, compiler does comparison and assigned b to true, after i incremented by one. But obviously I am wrong.
After that I modify the code like that:</p>

<pre><code>int i = 0;
bool b = i == i++;
Console.WriteLine(b);
</code></pre>

<p>This time output has been true. What did change from first sample?</p>
