看板C_Sharp
標 題Re: 急問 現在要用 型別轉換 …
發信站芭樂的故鄉 (Thu Mar 10 22:52:52 2005)
轉信站ptt!ctu-reader!ctu-peer!news.nctu!netnews.csie.nctu!Yuntech-News!news.
※ 引述《[email protected] (打古巴那局前面很搞笑… )》之銘言:
> 請問一下 c# string要轉int 用什麼東西? 謝謝
Convert.ToInt32(yourString);
Convert.Toxxxx(whatYouWanna);
--
◥◣ │◢ 我說拔辣!!◣╭─────────╮ ◢香蕉!!◣ \ ◢◤ˋ
ˋ ˊ▊ ●◤◥ ◤│ IP:140.123.174.1▂▃▅▆▇ ◥ ◤◥ ● ▊"
ˊ
" " ▋╯ ▁▃ DN:bala.twbbs.org│ ╰◢◤ "
∵ ∵▌▂▃▄▅▆▇█ ╰─────────╯《中正資管‧芭樂的故鄉》 ▋!
!◢◤ FR: 218-165-145-103.dynamic.hinet.net ◢◤ ◢
1F:推 jasonnet:convert+1 萬用 220.135.43.114 03/17