 <pre><code>for (int i = 0; i &lt; PersonalIdentityNumber.Count &amp;&amp; i &lt; PostNr.Count; i++) </code></pre> <p>The best would be to create an object with all properties and create an array of these objects. Some times one of the properties can be null.</p>