Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetItemProperties()

PropertyDescriptorCollection ITypedList. System.Data.DataViewManager.GetItemProperties ( PropertyDescriptor[] listAccessors)
inlineprivate

Implements System.ComponentModel.ITypedList.

Definition at line 313 of file DataViewManager.cs.

314 {
316 if (dataSet == null)
317 {
318 throw ExceptionBuilder.CanNotUseDataViewManager();
319 }
320 if (listAccessors == null || listAccessors.Length == 0)
321 {
322 return new DataViewManagerListItemTypeDescriptor(this).GetPropertiesInternal();
323 }
324 DataTable dataTable = dataSet.FindTable(null, listAccessors, 0);
325 if (dataTable != null)
326 {
328 }
329 return new PropertyDescriptorCollection(null);
330 }
DataTable FindTable(DataTable baseTable, PropertyDescriptor[] props, int propStart)
Definition DataSet.cs:2802
PropertyDescriptorCollection GetPropertyDescriptorCollection(Attribute[] attributes)

References System.Data.ExceptionBuilder.CanNotUseDataViewManager(), System.Data.DataViewManager.DataSet, System.Xml.Dictionary, System.Data.DataViewManagerListItemTypeDescriptor.GetPropertiesInternal(), and System.Data.DataTable.GetPropertyDescriptorCollection().