c# - 在 C# 中转换和转换
问题描述
在 C# 中:
string a="0";
int b=(int)a;
不管用。
但
string a="0";
int b=Convert.int32(a);
工作为什么?
解决方案
推荐阅读
- python - 逗号分隔列表到 Django 模板
- django - /oauth/login/google-oauth2/ 处的 Django Google social-auth ModuleNotFoundError
- c - C如何打印字符串数组中字符串的大小
- ios - SwiftUI 导航栏被切断
- laravel - 使用数据库服务运行 Laravel docker 映像
- laravel - 使用scorp时如何进行订单查询
- xamarin - 分发 Xamarin IOS 报错需要 Mac 连接
- python - 在 python 中,我尝试使用 for 循环或 while 循环将以下序列打印中的两个数组相乘
- python - 为预测单个视频游戏匹配结果的神经网络选择层类型
- performance - Chrome 性能分析器中的“时间”选项卡丢失