【发布时间】:2017-03-31 09:29:29
【问题描述】:
Dictionary<string, int> d4 = (Dictionary<string,int>)Session["Barcodes"];
字典包含条形码。同时,
List<AddInventory> Getdetails = Deserialize<List<AddInventory>>(Session[hdnPullId.Value].ToString());
这包含一个列表。在此模型 AddInventory 中,有一个属性 Barcode,而在 dictionary 中,字符串包含 Barcode。 List 有很多冗余条目,所以我只想在我的List 中包含这些条目,它们存在于dictionary 中。
我们将不胜感激。
谢谢
【问题讨论】:
标签: c# linq dictionary