title: How to build a properties selector?
body: <p>I was trying to make an Update function with the following format:</p>
  
  <pre><code>public int Update(
          Item Item, 
          Expression&lt;Func&lt;Item, object&gt;&gt; selector)
  </code></pre>
  
  <p>How can I read what properties are selected within the selector? I need the names of the properties.</p>
  
  <p>This is because I want to make the update function smarter so it updates only what has to be updated. It's for sql and it's a repository function.</p>
  
  <p>Thanks.</p>
  
  <p>Update for clarification:</p>
  
  <p>I want to be able to call Update like this:</p>
  
  <pre><code>Update(item, x =&gt; new { x.Property1, x.Property2 })
  </code></pre>
  
  <p>So IEnumerable of expressions is not an option but if the above is a lot more difficult I'll do that...</p>