查询类对象数组中符合条件的一个实例对象

泛型自带查询方法:
EntityErpFldMx ms = aryFldMx.Where(i => i.Jhd == "4900120121").FirstOrDefault();

Linq写法:
var var = from i in aryFldMx where i.Jhd == "4900120121" select i;

以上两种可实现功能需求,深入应用待完善……

参考:

http://bbs.csdn.net/topics/350187526

http://www.cnblogs.com/ASPNET2008/archive/2009/05/17/1458848.html

20160719更新

var mxItemsJy = from mxItem in lstMx
where (mxItem.JLDW == "YU" || mxItem.JLDW == "WYN")
select mxItem;

05-08 15:42