Pardon me if this has been asked a million times -- but I thought that the
syntax for right shift had changed with C# 2.0. I thought the operator was
supposed to change to "> >" (with exactly one space between them) to
distinguish it from nested generics.
But I've been using VS2005, and the old syntax works fine, and the new
syntax gives an error message. Below is code with the old syntax, that
works just fine. What am I missing?
Thanks,
Dan
------------------------------------------------
static void Main()
{
for (int i = 32; i > 0; )
{
i = i >> 1;
Console.WriteLi ne("Value: {0}", i);
}
}
syntax for right shift had changed with C# 2.0. I thought the operator was
supposed to change to "> >" (with exactly one space between them) to
distinguish it from nested generics.
But I've been using VS2005, and the old syntax works fine, and the new
syntax gives an error message. Below is code with the old syntax, that
works just fine. What am I missing?
Thanks,
Dan
------------------------------------------------
static void Main()
{
for (int i = 32; i > 0; )
{
i = i >> 1;
Console.WriteLi ne("Value: {0}", i);
}
}