Windows phone textbox input as an octal number

↘锁芯ラ 提交于 2019-12-24 16:29:25

问题


Can i capture the textbox input as an octal number in windows phone 7 ?


回答1:


You can covert string to int use:

int number = Convert.ToInt32("010", 8);

if it throws FormatException then number cannot be converted.



来源:https://stackoverflow.com/questions/11377655/windows-phone-textbox-input-as-an-octal-number

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!