title: How do I call a getter or setter in C#
body: <p>I understand how to create a getters and setters</p>
  
  <pre><code>public myClass
  {
      public int myVal { get; set; }
  
      // more stuff
  }
  </code></pre>
  
  <p>but I don't understand how to call it later on.</p>
  
  <pre><code>public myOtherClass
  {
      public myOtherClass()
      {
           myClass localMyClass = new myClass();
  
           localMyClass.???set??? = 42;  
           // Intelisense doesn't seem to give any obvious options after I enter 
           // the period.
      }
  }
  </code></pre>
  
  <p>How should I set the value of myVal in localMyClass?</p>