How can i compare two Lists ? <long[]> and <int> indexs
<p>This is the code:</p>

<pre><code>var numbers =
               lightningsRegions.SelectMany(
          s =&gt; Regex.Matches(s, @"\[(\d+)[ -]+(\d+)\]")
               .Cast&lt;Match&gt;()
               .Select(m =&gt; m.Groups.Cast&lt;Group&gt;().Skip(1).Select(x =&gt; x.Value)
                                                          .ToArray())
               .Select(x =&gt; new { start = int.Parse(x[0]), end = int.Parse(x[1]) })
               .SelectMany(x =&gt; Enumerable.Range(x.start, x.end - x.start + 1))
        )
       .ToList();


                for (int i = 0; i &lt; list_of_histogramsR.Count ; i++)
                {
                  if (list_of_histogramsR[i] == numbers[i])
                    {

                    }
                }
</code></pre>

<p>I consider the variable numbers as number of indexs. In the end numbers contain 5372 numbers.
So each number from thr 5272 is like an index.</p>

<p>Now i have this <code>List&lt;long[]&gt; list_of_histogramsR</code> wich contain 16595 indexs.
I want to check that if any number from numbers is in <code>list_of_histogramsR</code> as index number then do something.</p>

<p>For example the first number in numbers is 41. So when index number 41 of list_of_histogramsR == to the number 41 in numbers do something. Then the same for the next numbers in the variable numbers.</p>

<p>The problem is that on the IF line im getting error: Error 33 Operator '==' cannot be applied to operands of type 'long[]' and 'int'</p>

<p>Why ?</p>
