在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
例如:参数a、list b、ModelId;根据ModelId参数进行筛选 /// <summary> /// 根据ModelId筛选查询出对应的数据 /// </summary> /// <param name="list"></param> /// <param name="ModelId"></param> /// <returns></returns> private List<GetSellerOrdersRealItemsParms> selectList(List<GetSellerOrdersRealItemsParms> list, int ModelId) { if (ModelId != 0) { return list.FindAll(delegate(GetSellerOrdersRealItemsParms info) { if (info.ModelId == ModelId) { return true; } else { return false; } }); } else { return list.FindAll(delegate(GetSellerOrdersRealItemsParms info) { return true; }); } } 调用代码: List<GetSellerOrdersRealItemsParms> list_GetSellerOrdersRealItemsParms = new List<GetSellerOrdersRealItemsParms>(); list_GetSellerOrdersRealItemsParms = selectList(list, request.ModelId);
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论