title: Extension method to get property name
body: <p>I have an extension method to get property name as</p>
  
  <pre><code>public static string Name&lt;T&gt;(this Expression&lt;Func&lt;T&gt;&gt; expression)
  {
      MemberExpression body = (MemberExpression)expression.Body;
      return body.Member.Name;
  }
  </code></pre>
  
  <p>I am calling it as </p>
  
  <pre><code>string Name = ((Expression&lt;Func&lt;DateTime&gt;&gt;)(() =&gt; this.PublishDateTime)).Name();
  </code></pre>
  
  <p>This is working fine and returns me <code>PublishDateTime</code> as string. </p>
  
  <p>However I have an issue with the calling statement, it is looking too complex and I want some thing like this.</p>
  
  <pre><code>this.PublishDateTime.Name()
  </code></pre>
  
  <p>Can some one modify my extension method?</p>