8 
 
        
      
      Intersect()の反対
      
  次のように、Intersectを使用して2つのコレクション間の一致を見つけることができます。 // Assign two arrays. int[] array1 = { 1, 2, 3 }; int[] array2 = { 2, 3, 4 }; // Call Intersect extension method. var intersect = array1.Intersect(array2); // Write intersection to screen. foreach (int value in intersect) { Console.WriteLine(value); // Output: 2, 3 } ただし、私が達成したいのはその逆です。あるコレクションのアイテムのうち、他のコレクションにはないものをリストしたいと思います。 // Assign …
      
        
          
                   275
                
        
        
          
                  
                    c# 
                  
                    .net 
                  
                    collections 
                  
                    intersect