I\'d like to access the value of a dynamic c# property with a string:
dynamic
dynamic d = new { value1 = \"some\", value2 = \"random\", value3 = \"value\"
To get properties from dynamic doc when .GetType() returns null, try this:
.GetType()
null
var keyValuePairs = ((System.Collections.Generic.IDictionary)doc); var val = keyValuePairs["propertyName"].ToObject;