I am getting the members of a dynamic class using the following method:
public static IEnumerable<string> GetDynamicMemberNames(this IDynamicMetaObjectProvider dynamicProvider)
{
DynamicMetaObject metaObject = dynamicProvider.GetMetaObject(Expression.Constant(dynamicProvider));
return metaObject.GetDynamicMemberNames();
}
How can I now get more information about what the members are? e.g. whether the member is a property or a method, property return types, etc