private static GetListItemPropertiesByEnumerable ( IEnumerable enumerable, Array listAccessors ) : System.Windows.Forms.PropertyDescriptorCollection | ||
enumerable | IEnumerable | |
listAccessors | Array | |
Результат | 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;
}
ListBindingHelper::GetListItemPropertiesByEnumerable ( IEnumerable enumerable ) : System.Windows.Forms.PropertyDescriptorCollection | |
ListBindingHelper::GetListItemPropertiesByEnumerable ( IEnumerable iEnumerable, Array listAccessors, int startIndex ) : System.Windows.Forms.PropertyDescriptorCollection |