public override IEnumerable <string> GetDynamicMemberNames() { DynamicPropertyCollection properties = this.OrmDynamicObject.DynamicObjectType.Properties; string[] strArray = new string[properties.Count]; for (int i = 0; i < properties.Count; i++) { strArray[i] = properties[i].Name; } return(strArray); }
private static PropertyDescriptorCollection CreatePropertyDescriptorCollection(DynamicObjectType dt) { DynamicPropertyCollection properties = dt.Properties; PropertyDescriptor[] descriptorArray = new PropertyDescriptor[properties.Count]; for (int i = 0; i < properties.Count; i++) { descriptorArray[i] = properties[i].PropertyDescriptor; } return(new PropertyDescriptorCollection(descriptorArray)); }