Esempio n. 1
0
        public override PropertyDescriptorCollection GetProperties()
        {
            var properties = base.GetProperties().Cast <PropertyDescriptor>();

            properties = properties.Union(_model.GetProperties());
            return(new PropertyDescriptorCollection(properties.ToArray()));
        }
        private static MicroModelObject CreateMicroModelObject(ISelfDescribing selfDescribing)
        {
            selfDescribing.SealTypeDescription();

            var properties           = selfDescribing.GetProperties();
            var microModelObjectType = MicroModelObjectBuilder.GetMicroModelObjectType(properties);

            var microModelObject = (MicroModelObject)Activator.CreateInstance(microModelObjectType, selfDescribing);

            return(microModelObject);
        }