assigning value to bool inside while loop
<p>I know this is a very newbie C# question but I am implementing a small program which does the following:</p>

<pre><code>namespace ConsoleApplication
{
    class Program
{
static void Main(string[] args)
        {
    bool isRun = false;
                int number = 0;
                while (isRun = (true) &amp;&amp; number &lt; 3)
                {
                    ++number;
                    Console.WriteLine("Number = {0}", number.ToString());
                    Console.WriteLine();
                }
                Console.WriteLine(isRun.ToString());
                Console.ReadLine();
}
}
}
</code></pre>

<p>At the end of the while loop, I would have expected the <code>bool</code> value to be true, but is is printed to be <code>false</code>. Why is that? Is this different from C++ where I would have done something like and the same thing in C# is giving me false<br/></p>

<pre><code>while(number&lt;3)
{
is = true;
}
if(is){
cout&lt;&lt;true;
}
</code></pre>
