title: How to check if List < int[ ] > contains an int[] element that store the same values as another int[ ]?
body: <p>Let's say, that I have a list of integer arrays and an integer array:</p>
  
  <pre><code>List&lt;int[]&gt; MyListOfIntArrays = new List&lt;int[]&gt;
                                   {
                                        new int[1] {0},
                                        new int[2] {0,1},
                                        new int[2] {1,0}
                                   };
  int[] MyArray = new int[]{1, 0};
  </code></pre>
  
  <p>I want to find out how can I check if in MyListOfIntArrays is an element that stores the same values as MyArray. 
  In this case the answer should be: "Yes" (third element of MyListOfIntArrays stores the same values as MyArray).</p>
  
  <p>My attempt:</p>
  
  <pre><code>if (MyListOfIntArrays.Contains(MyArray) == true)
      Console.WriteLine("Yes");
  if (MyListOfIntArrays.Contains(MyArray) == false)
      Console.WriteLine("No");
  </code></pre>
  
  <p>always returns no. 
  I'm new to C# and my guess is that the method "Contains" checks references here, not values. Can someone help me with this problem?</p>