首页 > 解决方案 > 在 C# 中转换和转换

问题描述

在 C# 中:

string a="0";
int b=(int)a; 

不管用。

string a="0";
int b=Convert.int32(a);

工作为什么?

标签: c#

解决方案


推荐阅读