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.
私は2次元配列を持っていICsます.各行には3つのフィールドカテゴリ、名前、説明が含まれています.この配列からすべての異なるカテゴリを取得したい.私はこのようなことを試しました
ICs
var cs = ICs.Distinct(t => t.Category);
しかし、それは機能していません。これについて誰かが私に手を差し伸べることはできますか?
少し違うバージョン。
var value = (from n in ICs select n.Category).Distinct();
それが役に立てば幸い。