How do I easily check if all bools are true in asp.net c#?
<p>I have a list of bools on every page. I'm writing some validation code and am checking to make sure each bool is true before the user moves on. What is the best way to check to see if all the bools are true or false?</p>

<p>I know I can hard code each one in, but I'm wondering if there is a better way.</p>

<p>Here are the list of bools:</p>

<pre><code>public bool posTitleBool;
public bool firstNameBool;
public bool lastNameBool;
public bool titleBool;
public bool emailBool;
public bool phoneBool;
public bool passwordBool;
public bool passwordValBool;
public bool companyNameBool;
public bool address1Bool;
public bool address2Bool;
public bool cityBool;
public bool stateBool;
public bool zipBool;
public bool industryBool;
</code></pre>

<p>Any help is appreciated.</p>

<p>Thanks!</p>
