int.Parse() with leading zeros

后端 未结 8 828
粉色の甜心
粉色の甜心 2020-12-11 01:38

How do I prevent the code below from throwing a FormatException. I\'d like to be able to parse strings with a leading zero into ints. Is there a clean way to do

8条回答
提交回复
热议问题