title: C#: How do you pass an object in a function parameter?
body: <p>C#: How do you pass an object in a function parameter?</p>
  
  <pre><code>public void MyFunction(TextBox txtField)
  {
    txtField.Text = "Hi.";
  }
  </code></pre>
  
  <p>Would the above be valid? Or?</p>