📅  最后修改于: 2022-03-11 14:48:40.678000             🧑  作者: Mango
int val = 1;bool isAdult = Convert.ToBoolean(val);Console.WriteLine("Bool: " + isAdult.ToString());Console.WriteLine("Int: " + Convert.ToInt32(isAdult).ToString());