title: Why isn't my property doing the check?
body: <p>My constructor get info from the form. The 'name' is addressed with 'aName' (from the constructor), then there has to be a check done with prop 'NameCheck'. but if I compile it, it return an empty string. Any ideas?</p>
  
  <p>Code:</p>
  
  <p><strong>---- Class ----</strong></p>
  
  <pre><code>//Fields
  private List&lt;Create&gt; Characters;
  private string name;
  private int health;
  private int mSpeed;
  private Role role;
  private Speciality speciality;
  
  //Properties
  public string NameCheck
  {
      get {
          return name;
      }
      set
      {
          if (string.IsNullOrEmpty(name))
          {
              name = "Name not specified";
          }
          else 
          {
              name = value;
          }
      }
  }
  
  //Constructor
  
  public Create(string aName, int aHealth, int aMSpeed, Role aRole, Speciality aSpeciality)
  {
      this.name = aName;
      this.health = aHealth;
      this.mSpeed = aMSpeed;
      this.role = aRole;
      this.speciality = aSpeciality;
  
      Characters = new List&lt;Create&gt;();
  }
  </code></pre>
  
  <p><strong>---- Form ----</strong></p>
  
  <pre><code>Create character = new Create(tbName.Text, health, mspeed, aLane, aSpecial);
  
  Characters.Add(character);
  
  cbSummary.Items.Add(character.ToString());
  </code></pre>
  
  <p>PS: cbSummary is a combobox.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <pre><code>public override string ToString()
  {
      return "Name: " + NameCheck + " - Health: "  + health + " -  MovementSpeed: " + mSpeed + " - Role: " + role + " - Speciality: " + speciality;
  }
  </code></pre>