日期:2014-05-18  浏览次数:20736 次

强制类型转换???有必要吗??
output = "select:" + (this.checkBox1.Checked ? "programma" : "not a program") + "\r\n";

output = "select:" + (string)(this.checkBox1.Checked ? "programma" : "not a program") + "\r\n";

这里的sting 应该是错误的吧,本来就是string,为什么还要加一个强制类型转换

------解决方案--------------------
Checked 是BOOL类型