Click or drag to resize
OrderedBagTGetEnumerator Method
Returns an enumerator that enumerates all the items in the bag. The items are enumerated in sorted order.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public override sealed IEnumerator<T> GetEnumerator()

Return Value

Type: IEnumeratorT
An enumerator for enumerating all the items in the OrderedBag.

Implements

IEnumerableTGetEnumerator
Remarks

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.

See Also