title: How to return a value of passed in property of generated object in c#
body: <p>I have a function that returns a particular type. Ex. FaxFile. In that object there are several different formats to download ex: PDF, LargeJpg, SmallJpg, etc.</p>
  
  <p>I can call the download a pdf like this.</p>
  
  <pre><code>public FaxFile DownloadFaxPDFById(int faxId)
  {
      return DownloadFaxById(faxId).Pdf;
  }
  </code></pre>
  
  <p>What I am wanting to do is be able to pass in the property of the object ex. LargeJpg Format to download. </p>
  
  <p><strong>Sudo Code</strong></p>
  
  <pre><code>public FaxFile DownloadFaxTypeById(int faxId, property)
  {
     return DownloadFaxById(faxId).property;
  }
  </code></pre>
  
  <p>How do I do this?</p>