Click or drag to resize
OrderedBagTDistinctItems Method
Enumerates all the items in the bag, but enumerates equal items just once, even if they occur multiple times in the bag.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public IEnumerable<T> DistinctItems()

Return Value

Type: IEnumerableT
An IEnumerable<T> that enumerates the unique items.
Remarks
If the bag is changed while items are being enumerated, the enumeration will terminate with an InvalidOperationException.
See Also