【发布时间】:2013-12-12 22:53:31
【问题描述】:
假设我有类 Invoice:
public class Invoice
{
public int PartNumber { get; set; }
public string PartDescription { get; set; }
public int Quantity { get; set; }
public decimal Price { get; set; }
}
然后我在变量 arrayOfInvoices 中有一个对象数组。
如果我必须将发票分成两组 - 单价低于 12 的发票和单价高于或等于 12 的发票,并按价格升序显示每组发票的详细信息,我该怎么做?
【问题讨论】:
-
你有什么尝试吗?