![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)
Algorithms..::EqualCollections<(Of <T>)> Method (IEnumerable<(Of <T>)>, IEnumerable<(Of <T>)>) |
See Also |
![]() ![]() |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Determines if the two collections contain equal items in the same order. The two collections do not need
to be of the same type; it is permissible to compare an array and an OrderedBag, for instance.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static bool EqualCollections<T>( IEnumerable<T> collection1, IEnumerable<T> collection2 ) |
Visual Basic (Declaration) |
---|
Public Shared Function EqualCollections(Of T) ( _ collection1 As IEnumerable(Of T), _ collection2 As IEnumerable(Of T) _ ) As Boolean |
Visual C++ |
---|
public: generic<typename T> static bool EqualCollections ( IEnumerable<T>^ collection1, IEnumerable<T>^ collection2 ) |
Parameters
- collection1
- IEnumerable<(Of <T>)>
The first collection to compare.
- collection2
- IEnumerable<(Of <T>)>
The second collection to compare.
Return Value
True if the collections have equal items in the same order. If both collections are empty, true is returned.
Type Parameters
- T
- The type of items in the collections.
Remarks
The default sense of equality for T is used, as defined by T's
implementation of IComparable<T>.Equals or object.Equals.
See Also
Algorithms Class
Wintellect.PowerCollections Namespace