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

◆ InternalSort() [2/2]

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

Definition at line 318 of file EventDescriptorCollection.cs.

319 {
320 if (_events.Length == 0)
321 {
322 return;
323 }
325 if (names == null || names.Length == 0)
326 {
327 return;
328 }
330 int num = 0;
331 int num2 = _events.Length;
332 for (int i = 0; i < names.Length; i++)
333 {
334 for (int j = 0; j < num2; j++)
335 {
336 EventDescriptor eventDescriptor = list[j];
337 if (eventDescriptor != null && eventDescriptor.Name.Equals(names[i]))
338 {
339 _events[num++] = eventDescriptor;
340 list[j] = null;
341 break;
342 }
343 }
344 }
345 for (int k = 0; k < num2; k++)
346 {
347 if (list[k] != null)
348 {
349 _events[num++] = list[k];
350 }
351 }
352 }

References System.ComponentModel.EventDescriptorCollection._comparer, System.ComponentModel.EventDescriptorCollection._events, System.ComponentModel.EventDescriptorCollection.InternalSort(), and System.list.

Referenced by System.ComponentModel.EventDescriptorCollection.EnsureEventsOwned(), and System.ComponentModel.EventDescriptorCollection.InternalSort().