string strKeyword=this.txt_Keyword.Text;
示例:
var qList=from str in strArrayList
where (!strKeyWord.Equals(""))?(str.Length=3):true
string strKeyword=this.txt_Keyword.Text;
示例:
var qList=from str in strArrayList
where (!strKeyWord.Equals(""))?(str.Length=3):true
转载于:https://www.cnblogs.com/lmjob/archive/2010/01/21/1653238.html