title: C# or VB: Get the variable type from a property
body: <p>I'm trying get a member based on a String from a class and then get the type but I'm not having any luck.</p>
  
  <pre><code>Public Class Monster
      Public Property Name As String
      Public Property EatsPeople As Boolean
      Public Property Description As String
  End Class
  </code></pre>
  
  <p>To get the details for the member "EatsPeople" I do:</p>
  
  <pre><code>Dim t = GetType(Monster) ' Get the type of the Product entity.
  Dim fieldMemberInfo = t.GetMember("EatsPeople", BindingFlags.IgnoreCase Or BindingFlags.Public Or BindingFlags.Instance).Single()
  </code></pre>
  
  <p>No matter what combo I try, I either get Nothing or a RuntimePropertyType</p>
  
  <pre><code>Dim x = fieldMemberInfo.GetType
  </code></pre>