title: How would I use get and set to work with labels in my program?
body: <p>I have a program that shows a lot of data, and I am wondering what the best way would be to get and set the values of the labels in windows from other classes.</p>
  
  <p><strong>Update:</strong> I am basically wondering about this:</p>
  
  <pre><code>private string _name;
  public string Name
  {
      get
      {
          return _name;
      }
      set
      {
          _name = value;
      }
  }
  </code></pre>
  
  <p>How would it work in this case, etc.</p>