title: Query an Object when you only have the field name
body: <p>I am looking to build a Query based on the Property that is unknown. However, my problem is that the Property Name is passed through as a string and this can change anytime and there are alot of properties so i'm looking for something more elegant than a big if/switch statement.</p>
  <p>I am looking to do something along the lines of (Where query is of type IQueryable and the object type is known):</p>
  <pre><code>property = typeof(xxx).GetProperty(propName);
  
  query = query.Where(x =&gt; x.PassedThroughProperty == xx);
  </code></pre>
  <p>The query is for querying my Cosmos DB.</p>
  <p>Thanks :)</p>