Пример #1
0
        public PropertyDescriptorCollection GetItemProperties(PropertyDescriptor[] listAccessors)
        {
            if ((listAccessors == null) || (listAccessors.Length == 0))
            {
                return(this._propertyCollection);
            }
            if (this._childCollectionProperties == null)
            {
                this._childCollectionProperties = new Dictionary <string, PropertyDescriptorCollection>();
            }
            string key = listAccessors[0].PropertyType.FullName;

            if (this._childCollectionProperties.ContainsKey(key))
            {
                return(this._childCollectionProperties[key]);
            }
            PropertyDescriptorCollection bindableProperties = EntityHelper.GetBindableProperties(listAccessors[0].PropertyType);

            this._childCollectionProperties.Add(key, bindableProperties);
            return(bindableProperties);
        }
Пример #2
0
 private void InitializeList()
 {
     this._propertyCollection = EntityHelper.GetBindableProperties(typeof(T));
     this._listName           = typeof(T).Name;
 }