GetRepresentativeItem Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Returns the representative item stored in the bag that is equal to the provided item. Also returns the number of copies of the item in the bag.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public int GetRepresentativeItem(
	T item,
	out T representative
)
Visual Basic (Declaration)
Public Function GetRepresentativeItem ( _
	item As T, _
	<OutAttribute> ByRef representative As T _
) As Integer
Visual C++
public:
int GetRepresentativeItem (
	T item, 
	[OutAttribute] T% representative
)

Parameters

item
T
Item to find in the bag.
representative
T%
If one or more items equal to item are present in the bag, returns the representative item. If no items equal to item are stored in the bag, returns item.

Return Value

The number of items equal to item stored in the bag.

See Also