var info00 = new List<BaseDiagnose>();
foreach (var item in info.DiagList)
{
if (item.DiagKind== Neusoft.HISFC.Models.MRS.EnumDiagKind.PathologyDiag)
{
info00.Add(item);
}
}
等价于:
var _info = info.DiagList.Where(s => s.DiagKind == Neusoft.HISFC.Models.MRS.EnumDiagKind.PathologyDiag).ToList();