![Collapse image](collapse_all.gif)
![Expand Image](expand_all.gif)
![CollapseAll image](collall.gif)
![ExpandAll image](expall.gif)
![DropDown image](drpdown.gif)
![DropDownHover image](drpdown_orange.gif)
![Copy image](copycode.gif)
![CopyHover image](copycodeHighlight.gif)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Enumerates all the items in the bag, but enumerates equal items
just once, even if they occur multiple times in the bag.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public IEnumerable<T> DistinctItems() |
Visual Basic (Declaration) |
---|
Public Function DistinctItems As IEnumerable(Of T) |
Visual C++ |
---|
public: IEnumerable<T>^ DistinctItems () |
Return Value
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
Bag<(Of <T>)> Class
Wintellect.PowerCollections Namespace