110,535
社区成员
发帖
与我相关
我的任务
分享
// 方法1
short a;
short.TryParse("123", out a);
//方法2
short b = Convert.ToInt16("123");
// 方法3
short c = short.Parse("123");
short a;
short.TryParse("123", out a);
//方法2
short b = Convert.ToInt16("123");
// 方法3
short c = short.Parse("123");