title: How do I reference a field in Linq based on a dynamic fieldname
body: <p>Firstly, apologies for the bad question title - not entirely sure if I am asking the correct thing.</p>
  
  <p>Normally I can do the following to access a field:</p>
  
  <pre><code>MyTables table = dc.MyTables.SingleOrDefault(p =&gt; p.id == someId);
  somevalue = table.samplefield;
  </code></pre>
  
  <p>In this instance the variable <em>somevalue</em> would end up having the value of the field <em>samplefield</em>.</p>
  
  <p>Now I have a scenario where I want to populate a variable, but I don't know the name of the table field at design time.  I do however, have this fieldname in a string.  Is it therefore possible to fetch a value using this string?</p>
  
  <p>Hoping this makes sense!</p>