How do I bitwise shift right/left in VB.NET? Does it even have operators for this, or do I have to use some utility method?
+1
A:
It's right there mate, just down on the list from the link you posted!
Noon Silk
2009-09-13 12:35:14
Yea, just found it myself!
Jenko
2009-09-13 12:35:52
A:
Oh I found it, you can use the << and >> operators, and you have to specify how many bits to shift.
myFinal = myInteger << 4 // shift LEFT by 4 bits
myFinal = myInteger >> 4 // shift RIGHT by 4 bits
Jenko
2009-09-13 12:35:15
A:
the article at http://visualbasic.about.com/od/usingvbnet/a/bitops01.htm should be useful.
Tzury Bar Yochay
2009-09-13 12:36:53