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

◆ InternalSort() [2/2]

void System.ComponentModel.PropertyDescriptorCollection.InternalSort ( string?[] names)
inlineprotected

Definition at line 425 of file PropertyDescriptorCollection.cs.

426 {
427 if (_properties.Length == 0)
428 {
429 return;
430 }
432 if (names == null || names.Length == 0)
433 {
434 return;
435 }
437 int num = 0;
438 int num2 = _properties.Length;
439 for (int i = 0; i < names.Length; i++)
440 {
441 for (int j = 0; j < num2; j++)
442 {
443 PropertyDescriptor propertyDescriptor = list[j];
444 if (propertyDescriptor != null && propertyDescriptor.Name.Equals(names[i]))
445 {
447 list[j] = null;
448 break;
449 }
450 }
451 }
452 for (int k = 0; k < num2; k++)
453 {
454 if (list[k] != null)
455 {
456 _properties[num++] = list[k];
457 }
458 }
459 }

References System.ComponentModel.PropertyDescriptorCollection._comparer, System.ComponentModel.PropertyDescriptorCollection._properties, System.ComponentModel.PropertyDescriptorCollection.InternalSort(), and System.list.

Referenced by System.ComponentModel.PropertyDescriptorCollection.EnsurePropsOwned(), and System.ComponentModel.PropertyDescriptorCollection.InternalSort().