Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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));
        }