System.Windows.Forms.ListBindingHelper.GetListItemPropertiesByEnumerable C# (CSharp) Method

GetListItemPropertiesByEnumerable() private static method

private static GetListItemPropertiesByEnumerable ( IEnumerable enumerable, Array listAccessors ) : System.Windows.Forms.PropertyDescriptorCollection
enumerable IEnumerable
listAccessors Array
return System.Windows.Forms.PropertyDescriptorCollection
        private static PropertyDescriptorCollection GetListItemPropertiesByEnumerable(IEnumerable enumerable, PropertyDescriptor[] listAccessors) {
            PropertyDescriptorCollection pdc = null;

            if ((null == listAccessors) || (listAccessors.Length == 0)) {
                pdc = GetListItemPropertiesByEnumerable(enumerable);
            }
            else  {
                ITypedList typedList = enumerable as ITypedList;
                if (typedList != null) {
                    pdc = typedList.GetItemProperties(listAccessors);
                }
                else {
                    // Walk the tree
                    pdc = GetListItemPropertiesByEnumerable(enumerable, listAccessors, 0);
                }
            }
            return pdc;
        }

Same methods

ListBindingHelper::GetListItemPropertiesByEnumerable ( IEnumerable enumerable ) : System.Windows.Forms.PropertyDescriptorCollection
ListBindingHelper::GetListItemPropertiesByEnumerable ( IEnumerable iEnumerable, Array listAccessors, int startIndex ) : System.Windows.Forms.PropertyDescriptorCollection