E
ERE
Pardon me if this has been asked a million times -- but I thought that
because of generics, the right shift operator was supposed to change with C#
2.0. I thought it was supposed to change from ">>" to "> >", to distiguish
it from nested generics.
But I've been using VS2005, and when I put in the new syntax I get an error
message, whereas the old syntax, as shown in the following code continues to
work fine. What am I missing?
Thanks,
Dan
------------------
static void Main( )
{
for (int i = 32; i > 0; )
{
i = i >> 1;
Console.WriteLine("Value: {0}", i);
}
}
because of generics, the right shift operator was supposed to change with C#
2.0. I thought it was supposed to change from ">>" to "> >", to distiguish
it from nested generics.
But I've been using VS2005, and when I put in the new syntax I get an error
message, whereas the old syntax, as shown in the following code continues to
work fine. What am I missing?
Thanks,
Dan
------------------
static void Main( )
{
for (int i = 32; i > 0; )
{
i = i >> 1;
Console.WriteLine("Value: {0}", i);
}
}