Bitconverterクラスを使用して abyte array
をhexadecimal
値に変換しようとしています。
long hexValue = 0X780B13436587;
byte[] byteArray = BitConverter.GetBytes ( hexValue );
string hexResult = BitConverter.ToString ( byteArray );
上記のコードを 1 行ずつ実行すると、次のように表示されます
hexResult文字列はhexValue (つまり 780B13436587h)と同じになると思っていましたが、得られるものは異なります。
ありがとう!