title: How to get property name when it uses yield return
body: <p>How do i get property name of the executing property. If the property uses "return" then 
  MethodBase.GetCurrentMethod().Name returns the name of the property. But when I use "yield return" MethodBase.GetCurrentMethod().Name returns "MoveNext". how do I get the executing property name when it uses yield return?</p>
  
  <p>Sample Code</p>
  
  <pre><code>    class Program
      {
         static void Main(string[] args)
         {
  
           var x = myProgram.Something;
  
           Console.ReadLine();
         }       
     }
  
  public class myProgram
  {
      public static IEnumerable&lt;string&gt; Something
      {
          get
          {
              string var = MethodBase.GetCurrentMethod().Name;
              for (int i = 0; i &lt; 5; i++)
              {
                  yield return var;
              }
          }
      }
  }
  </code></pre>