Re: BitConverter.ToInt16 doesn't work correct

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



That should probably be a bitwise "or" (|), not a logical "or" (||).
And again, it only helps with a few cases (single, simple values like
short). IMO, the better solution is to leave the byte-stream alone,
and use EndianBitConverter. This will work for multiple sequenced
values, and all data types.

Marc


.