title: LINQ where condition with dynamic column
body: <p>I have this code</p>
  
  <pre><code>// IQueryable&lt;General&gt; query
  
  if (columnName == "Column1") 
  {
    query = query.Where(x =&gt; x.Column1 == searchValue);
  }
  else if (columnName == "Column2") 
  {
    query = query.Where(x =&gt; x.Column2 == searchValue);
  }
  else if (columnName == "Column3") 
  {
    query = query.Where(x =&gt; x.Column3 == searchValue);
  }
  else if (columnName == "Column4") 
  {
    query = query.Where(x =&gt; x.Column4 == searchValue);
  }
  // next zilions columns to come
  // ...
  </code></pre>
  
  <p>and my question is. How can i past x.Column as a parameter inside ".Where" condition ?</p>