Re: BitConverter.ToInt16 doesn't work correct
- From: "Marc Gravell" <marc.gravell@xxxxxxxxx>
- Date: Tue, 16 Oct 2007 09:49:18 +0100
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
.
- References:
- Re: BitConverter.ToInt16 doesn't work correct
- From: Peter Duniho
- Re: BitConverter.ToInt16 doesn't work correct
- From: Peter Duniho
- Re: BitConverter.ToInt16 doesn't work correct
- From: Kevin Spencer
- Re: BitConverter.ToInt16 doesn't work correct
- From: Michael C
- Re: BitConverter.ToInt16 doesn't work correct
- From: Marc Gravell
- Re: BitConverter.ToInt16 doesn't work correct
- From: Michael C
- Re: BitConverter.ToInt16 doesn't work correct
- Prev by Date: Re: how to Draw an ellipse using c#
- Next by Date: Re: Finally which ORM tool?
- Previous by thread: Re: BitConverter.ToInt16 doesn't work correct
- Next by thread: Re: BitConverter.ToInt16 doesn't work correct
- Index(es):