📜  c# 添加两个 int 变量 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:45.556000             🧑  作者: Mango

代码示例1
int a = 1039; 
int b = 7056; 
int newNumber = int.Parse(a.ToString() + b.ToString());
//Or
int newNumber = Convert.ToInt32(string.Format("{0}{1}", a, b));