title: Making new list of Object Attribute then calling each attribute with a incrementing int variable
body: <p>This might be a stupid question but I am new to C# coding and object-oriented programming. I'm trying to assign strings to a Class attribute while using an incrementing variable called &quot;x&quot;.
  But after increment x once, C# tells me &quot;System.ArgumentOutOfRangeException: 'Index was out of range&quot;.</p>
  <p>I just not getting it, it should be able to create a lot of clients with this.</p>
  <pre><code>        int x = 0;
          private void buttonSubmit_Click(object sender, EventArgs e)
          {
  
              List&lt;Client&gt; newClient = new List&lt;Client&gt;();  //creates a variable called &quot;newClient&quot; which is a list of Client object
              newClient.Add(new Client());                  // calling a constructor to create a Client Object
              newClient[x].Name = textBoxName.Text;         //newclient[0]
              newClient[x].Address = textBoxAddress.Text;
              newClient[x].Birthday = textBoxBirthDay.Text;
              newClient[x].Gender = textBoxGender.Text;
              newClient[x].PhoneNumber = textBoxPhoneNumber.Text;
              newClient[x].Income = textBoxIncome.Text;
  
              string Output = newClient[x].Name + &quot; &quot; + newClient[x].Address + &quot; &quot; + newClient[x].birthday + &quot; &quot; + newClient[x].Gender + &quot; &quot; + newClient[x].PhoneNumber + &quot; &quot; + newClient[x].Income;
              labelOutput.Text += Output + &quot;\n&quot;;
              x++;
          }
  </code></pre>