I want to populate a PropertyDescriptorCollection
from an ExpandoObject
like this :
PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(obj.GetType());
int propsCount = properties.Count;
but I always get 0 in propsCount
even if the dynamic object has values.
How can I get arround this, knowing that I need to know the PropertyInfo
of each property in the ExpandoObject
.
Thank you.