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 つのコレクションがあります。
coll1 = {1,2,3,4,5} coll2 = {3,4,5,6,7,8,9}
両方のコレクションに含まれる要素の数を見つける方法(最高のパフォーマンス)? たとえば、上記の結果は equal である必要があります3。
3
ありがとう、
coll1.Intersect(coll2 ).Count()