title: How to set a new object's name using text in a textbox?
body: <p>I have a button that by clicking it, a new object is constructed by the name of <code>c1</code>:</p>
  
  <pre><code>private void addbtn_Click(object sender, EventArgs e)
  {
    Contact c1 = new Contact(add_name_txtbx.Text,add_num_txtbx.Text);
  }
  </code></pre>
  
  <p>I want to set the name of the new object (<code>c1</code>) using the text entered in a textbox.</p>
  
  <p>something like:</p>
  
  <pre><code>private void addbtn_Click(object sender, EventArgs e)
  {
    Contact add_name_txtbx.Text = new Contact(add_name_txtbx.Text,add_num_txtbx.Text);
  }
  </code></pre>
  
  <p>Is it possible? How should I do it?</p>
  
  <p>this is the class:</p>
  
  <pre><code>class Contact
  {
      public string _name;
      public string _number;
  
      public void setName(string Name)
      {
          _name = Name;
      }
  
      public string getName()
      {
          return _name;
      }
  
      public void setNumber(string Number)
      {
          _number = Number;
      }
  
      public string getNumber()
      {
          return _number;
      }
  
      public Contact(string Name, string Number)
      {
          _name = Name;
          _number = Number;
      }
  }
  </code></pre>