title: How do I reflect over the members of dynamic object?
body: <p>I need to get a dictionary of properties and their values from an object declared with the dynamic keyword in .NET 4? It seems using reflection for this will not work. </p>
  
  <p>Example:</p>
  
  <pre><code>dynamic s = new ExpandoObject();
  s.Path = "/Home";
  s.Name = "Home";
  
  // How do I enumerate the Path and Name properties and get their values?
  IDictionary&lt;string, object&gt; propertyValues = ???
  </code></pre>