使用C#在Little或Big Endian中写入/读取二进制数据的最佳方法?

好的,如果我在.NET下有一个用little endian或big endian编码的二进制文件,那么读/写它的最佳方法是什么?

在.NET框架中,我只设法找到使用little endian作为默认值的BinaryWritters / BinaryReaders,所以我的方法是实现我自己的BinaryReader / BinaryWritter来读取/写入big endian中的数据,但是我想知道是否有更好的方法。

我喜欢这一个:

其他实用程序库