Comparing values of arrays in C#
<p>I have a bool array that looks like this </p>

<pre><code>bool[] responses = new bool[] {true, false, true};
</code></pre>

<p>And two classes that look like this:</p>

<pre><code>public class Person {
  public IList&lt;PersonDetail&gt; PersonDetails
}

public class PersonDetail {
  public bool   Correct { get; set; }
}

PersonDetails
 &gt;&gt; PersonDetail[0].correct = true
 &gt;&gt; PersonDetail[1].correct = true
 &gt;&gt; PersonDetail[2].correct = false
</code></pre>

<p>Is there a simple way I can compare these to see if the true/false are equal for each? 
I was trying to use the c# <code>.SequenceEqual</code> but I don't know how to get the data from 
the PersonDetail class into a sequence xxx that I can use to compare with responses.</p>

<p>Here's what I have so far:</p>

<pre><code>var equal = responses.Select(bool.Parse).SequenceEqual( xxx );
</code></pre>

<p>What I need to do is to compare the following:</p>

<pre><code>responses[0] == PersonDetail[0].correct and
responses[1] == PersonDetail[1].correct and
responses[2] == PersonDetail[2].correct 
</code></pre>

<p>So what's true in <code>responses[x]</code> should match true in <code>PersonDetail[x]</code> and what's false in <code>responses[x]</code> should match false in <code>PersonDetail[x]</code></p>
