C# 强制类型转换示例

将STRING型数据强制转换为INT型:

1)int.parse();

2)Convert.ToInt32(TextBox1.Text);

原文地址:https://www.cnblogs.com/macavalier/p/1305367.html