OrderedBagTGetEnumerator Method |
Namespace: X3Platform.Collections
Typically, this method is not called directly. Instead the "foreach" statement is used to enumerate the items, which uses this method implicitly.
If an item is added to or deleted from the bag while it is being enumerated, then the enumeration will end with an InvalidOperationException.
Enumeration all the items in the bag takes time O(N), where N is the number of items in the bag.