2
public class MySoft
{
public string SoftName { get; set; }
public int Version { get; set; }
public decimal Price { get; set; }
}
由於DATAS我有「MySoft」的名單(softname,版本,價格):獲得最大的價值
SoftA 1 25
SoftB 1 35
SoftB 2 12
SoftB 3 24
SoftA 2 14
我希望得到保留名稱,價格和版本與最高版本。
結果應該是:
SoftA 2 14
SoftB 3 24
你有一個想法?
感謝,