Home All Groups Group Topic Archive Search About
Author
20 Sep 2006 8:57 PM
John Wright
I have the following code that was converted from C#

Machine.Shift.Left(data(63), 24) Or Machine.Shift.Left(data(62), 16) Or
Machine.Shift.Left(data(61), 8) Or data(60)



Of course this doesn't work so how would this line be converted to VB



John

Author
20 Sep 2006 9:38 PM
GhostInAK
Hello John,
That line already looks like VB syntax.  You'd have to post the oringinal
C# code to get a meaningful response.

-Boo

Show quoteHide quote
> I have the following code that was converted from C#
>
> Machine.Shift.Left(data(63), 24) Or Machine.Shift.Left(data(62), 16)
> Or Machine.Shift.Left(data(61), 8) Or data(60)
>
> Of course this doesn't work so how would this line be converted to VB
>
> John
>
Author
20 Sep 2006 9:58 PM
Herfried K. Wagner [MVP]
"John Wright" <riley_wri***@notmail.com> schrieb:
>I have the following code that was converted from C#
>
> Machine.Shift.Left(data(63), 24) Or Machine.Shift.Left(data(62), 16) Or
> Machine.Shift.Left(data(61), 8) Or data(60)
>
> Of course this doesn't work so how would this line be converted to VB

Just a guess:  The converter only supports VB.NET 2002 and thus it does not
emit VB.NET 2003's bit-shifting operators ('>>', '<<').

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>