1 2 3 | byte [] c = new byte [2] { 0x41,0x61 }; string s=Convert.ToChar(c[0]); => s= "A" ; string s=Convert.ToChar(c[1]); => s= "a" ; |
1 2 3 | byte [] c = new byte [2] { 0x41,0x61 }; string s=c[0].ToString( "X02" ); => s= "41" ; string s=c[1].ToString( "X02" ); => s= "62" ; |