作者stone939 ()
看板C_Sharp
標題[問題] Tostring("X")是代表什麼意思?
時間Tue Apr 22 02:17:50 2008
請問一下
byte[] aa={11,22,33};
label1.text = aa[11].tostring("X").padleft(2,'0');
結果跟
label1.text = aa[11].tostring().padleft(2,'0');
是ㄧ樣的 --> 0B
括號裡面的"X"到底作用是什麼?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.160.122.89
1F:推 leicheong:你確定不是aa[1]嗎? 04/22 09:45
2F:推 virdust2003:hex 04/22 10:21
3F:→ stone939:sorry 多一個1 04/22 18:48
4F:→ stone939:主要想問那個X 04/22 18:48