Unique list of items using LINQ

后端 未结 6 1421
星月不相逢
星月不相逢 2021-02-01 05:39

I\'ve been using LINQ for a while now, but seem to be stuck on something with regards to Unique items, I have the folling list:

List stock = new Lis         


        
6条回答
  •  天涯浪人
    2021-02-01 06:08

    var kitchenAppliances = stocks.Where(stock => stock.Type == "Kitchen Appliance");
    

提交回复
热议问题