BinaryWriter Endian issue
Solution 1:
You can use my EndianBinaryWriter
in MiscUtil. That lets you specify the endianness you want. There's also EndianBinaryReader
and EndianBitConverter
.
EndianBinaryWriter writer = new EndianBinaryWriter(EndianBitConverter.Big,
stream);
writer.Write(...);
It doesn't derive from BinaryWriter
, for reasons given in a blog post.
Solution 2:
according to microsoft connect, it's currently not supported: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=484149