title: .NET C# - Number of Distinct Arrays in an Array
body: <p>I'm new here and somewhat inexperienced with C#. I've been searching through the MSDN documentation and Google, but can't find the answer to this (I try to word it as generally as possible):</p>
  
  <p>I want to store a fixed-length ordered sequence of integers in a list or array, and then make an array of these integer arrays. Does anyone know how I can count the number of distinct integer arrays, and what specific data type(s) I should use (List, plain array, etc.)? I don't have the exact code I've been working with, but here's something similar to what I have been trying:</p>
  
  <pre><code>int[] set1 = {2, 56, 8};
  int[] set2 = {8, 25, 90};
  int[] set3 = {2, 56, 8};
  
  var superset = new List&lt;int[]&gt;;
  superset.Add(set1);
  superset.Add(set2);
  superset.Add(set3);
  
  Console.Out.WriteLine(superset.Distinct().Count());  //  would like this to output 2, but Distinct() doesn't seem to actually work and I would get 3
  </code></pre>