【发布时间】:2012-09-18 07:51:11
【问题描述】:
以下 IF 语句检查 ListexceptionCM 是否包含下拉列表的选定值。
List<string> ExceptionCM = new List<string>;
if(exceptionsCM.Any(s => ddl_model.SelectedValue.Contains(s)) )
{
//do something
}
List<string> ExceptionPM;
List<string> ExceptionDL;
List<string> ExceptionCL;
我想更改语句,因此我可以检查 4 列表是否不包含下拉列表的选定值。你能帮帮我吗?
【问题讨论】: