title: Variables in Select Statement
body: <p>I have the following function:</p>
  
  <pre><code>    public List&lt;TopMediansModel&gt; QueryForMedians(string state, string median)
      {
          ApplicationDbContext db = new ApplicationDbContext();
          return (from q in db.StateSuburbLocation
                  where (q.State == state)
                  orderby q.GetType().GetProperty(median) descending
                  select new TopMediansModel
                  {
                      Median = median,
                      MedianValue = q.GetType().GetProperty(median),
                      MedianSuburb = q.Suburb
                  }).Take(10).ToList();
      }
  </code></pre>
  
  <p>Is it possible to have the <code>orderby</code> and <code>MedianValue</code> 'properties' as variables?</p>
  
  <p>I've tried using the <code>GetType().GetProperty()</code> Methods, and am no doubt doing so incorrectly.</p>