Removes all occurrence of a specific object from the collection and keeps order of the items in the collection. The item to remove.
| 636 | /// </summary> |
| 637 | /// <param name="item">The item to remove.</param> |
| 638 | void RemoveAllKeepOrder(const T& item) |
| 639 | { |
| 640 | for (int32 i = Count() - 1; i >= 0; --i) |
| 641 | { |
| 642 | if (_allocation.Get()[i] == item) |
| 643 | { |
| 644 | RemoveAtKeepOrder(i); |
| 645 | if (IsEmpty()) |
| 646 | break; |
| 647 | } |
| 648 | } |
| 649 | } |
| 650 | |
| 651 | /// <summary> |
| 652 | /// Removes the item at the specified index of the collection and keeps order of the items in the collection. |