且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在C#中将字符串转换为int

更新时间:2022-11-19 08:57:05

尝试一下,

 string SubString = MyString.Substring(1);

但是请注意,如果字符串为空,则为错误情况.

But take care if the string is empty, it is an error case.