C# note

byte[] array={1,2};
int offset = 0;
int result = BitConverter.ToInt16(array, offset);

 ---

output: result = 0x00000201

posted @ 2014-12-27 20:22  StuJnX6ry  阅读(193)  评论(0)    收藏  举报