🌈 搜索
📅  最后修改于: 2022-03-11 14:48:58.960000             🧑  作者: Mango
string sample = "True"; bool myBool = bool.Parse(sample); ///or bool myBool = Convert.ToBoolean(sample);