GenericExtensionsContainsSameElementsT Method |
Gets a value indicating whether two enumerations contain the same elements, even if they are in different orders
Namespace: Lithnet.MetadirectoryServicesAssembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax public static bool ContainsSameElements<T>(
this IEnumerable<T> enumeration1,
IEnumerable<T> enumeration2
)
<ExtensionAttribute>
Public Shared Function ContainsSameElements(Of T) (
enumeration1 As IEnumerable(Of T),
enumeration2 As IEnumerable(Of T)
) As Boolean
public:
[ExtensionAttribute]
generic<typename T>
static bool ContainsSameElements(
IEnumerable<T>^ enumeration1,
IEnumerable<T>^ enumeration2
)
Parameters
- enumeration1
- Type: System.Collections.GenericIEnumerableT
The first list to compare - enumeration2
- Type: System.Collections.GenericIEnumerableT
The second list to compare
Type Parameters
- T
- The type of items in the enumerations
Return Value
Type:
BooleanA value indicating if the two enumerations contain the same objects
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also