title: Get string version of lambda expression property
body: <p><strong>Similar to question <a href="https://stackoverflow.com/questions/4726565/how-can-i-get-property-name-strings-used-in-a-func-of-t">How can I get property name strings used in a Func of T</a>.</strong></p>
  
  <p>Let's say I had a lambda expression
  stored like this in a variable called "getter"</p>
  
  <pre><code>Expression&lt;Func&lt;Customer, string&gt;&gt; productNameSelector =
      customer =&gt; customer.Product.Name;
  </code></pre>
  
  <p><strong>how can I extract the string "Product.Name" from that?</strong></p>
  
  <p>I now fixed it somewhat haxy with </p>
  
  <pre><code>var expression = productNameSelector.ToString();
  var token = expression.Substring(expression.IndexOf('.') + 1);
  </code></pre>
  
  <p>But i'd like to find a more solid way ;-)</p>