Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Valueインスタンスの一部を取得する方法を理解するのに苦労していIGroupingます。
Value
IGrouping
私は次のものを持っています:
IList<IGrouping<string, PurchaseHistory> results = someList.GroupBy(x => x.UserName);
そして、各コレクションを反復処理して、そのユーザーの購入履歴を取得したいと考えています (そして、購入履歴のコレクションに何かが存在するかどうかを確認します)。