How do I convert a boolean list to int?
<p>How do I convert a boolean list to an integer equal to the Booleans interpreted as a byte?</p>

<p>i.e. </p>

<pre><code>public List&lt;Boolean&gt; MyList = new List&lt;Boolean&gt;();
MyList.Add(true);
MyList.Add(true);
MyList.Add(false);
MyList.Add(false);
MyList.Add(false);
MyList.Add(false);
MyList.Add(false);
MyList.Add(false);
</code></pre>

<p>This would return a 3.</p>