PropertyDescriptorCollection System.ComponentModel.ITypedList.GetItemProperties(PropertyDescriptor[] listAccessors)
{
DataSet dataSet = DataSet;
if (dataSet == null)
{
throw ExceptionBuilder.CanNotUseDataViewManager();
}
if (listAccessors == null || listAccessors.Length == 0)
{
return ((ICustomTypeDescriptor)(new DataViewManagerListItemTypeDescriptor(this))).GetProperties();
}
else
{
DataTable table = dataSet.FindTable(null, listAccessors, 0);
if (table != null)
{
return table.GetPropertyDescriptorCollection(null);
}
}
return new PropertyDescriptorCollection(null);
}