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

◆ ApplySort() [1/2]

void IBindingListView. System.Data.DataView.ApplySort ( ListSortDescriptionCollection sorts)
inlineprivateinherited

Implements System.ComponentModel.IBindingListView.

Definition at line 973 of file DataView.cs.

974 {
975 if (sorts == null)
976 {
977 throw ExceptionBuilder.ArgumentNull("sorts");
978 }
980 bool flag = false;
982 {
983 if (item == null)
984 {
985 throw ExceptionBuilder.ArgumentContainsNull("sorts");
986 }
987 PropertyDescriptor propertyDescriptor = item.PropertyDescriptor;
988 if (propertyDescriptor == null)
989 {
990 throw ExceptionBuilder.ArgumentNull("PropertyDescriptor");
991 }
993 {
994 throw ExceptionBuilder.ColumnToSortIsOutOfRange(propertyDescriptor.Name);
995 }
996 ListSortDirection sortDirection = item.SortDirection;
997 if (flag)
998 {
999 stringBuilder.Append(',');
1000 }
1002 if (!flag)
1003 {
1004 flag = true;
1005 }
1006 }
1007 Sort = stringBuilder.ToString();
1008 }
DataColumnCollection Columns
Definition DataTable.cs:327
string CreateSortString(PropertyDescriptor property, ListSortDirection direction)
Definition DataView.cs:1010

References System.Data.DataView._table, System.Data.ExceptionBuilder.ArgumentContainsNull(), System.Data.ExceptionBuilder.ArgumentNull(), System.Data.DataTable.Columns, System.Data.ExceptionBuilder.ColumnToSortIsOutOfRange(), System.Data.DataColumnCollection.Contains(), System.Data.DataView.CreateSortString(), System.item, and System.Data.DataView.Sort.