1
public class Feature
{
public string Id { get; set; }
public string Description { get; set; }
public decimal Class { get; set; }
public decimal Price { get; set; }
}
我有一个Feature[]
数组。现在,当我有一个填充阵列列表时,我想要:阵列上的LINQ过滤器
- 通过删除
Price = 0
中的任何项来过滤arraylist。 - 如果
[Id]
和[Class]
是相同的,我想总结这些物品的价格并显示为单个物品。
如何用LINQ实现这一点?