亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

C#Linq Group By多列

C#Linq Group By多列

C#
皈依舞 2019-09-19 09:08:04
public class ConsolidatedChild{    public string School { get; set; }    public string Friend { get; set; }    public string FavoriteColor { get; set; }    public List<Child> Children { get; set; }}public class Child{    public string School { get; set; }    public string Name { get; set; }    public string Address { get; set; }    public string Friend { get; set; }    public string Mother { get; set; }    public string FavoriteColor { get; set; }}鑒于上面的兩個類,我想使用LINQ從List創建一個List,按School,Friend和FavoriteColor屬性分組。LINQ可以實現嗎?請忽略屬性,代碼編寫只是為了幫助解決問題。
查看完整描述

3 回答

?
慕斯709654

TA貢獻1840條經驗 獲得超5個贊

變量名也不是我的選擇。事實上,在寫作時我努力弄清楚“gcs”對作者意味著什么。我能想到的最好的是“Cs團隊”。無論如何,我只建議它試圖讓某人在兩種語法之間制作心理地圖變得容易。(合成器?我打賭語法是那些單詞之一,它是自己的復數。因為這是英語,為什么“語法”會受到關于復數的句法規則的約束?)

查看完整回答
反對 回復 2019-09-19
  • 3 回答
  • 0 關注
  • 2232 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號