Click or drag to resize
GenericExtensionsContainsSameElementsT Method
Gets a value indicating whether two enumerations contain the same elements, even if they are in different orders

Namespace: Lithnet.MetadirectoryServices
Assembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax
public static bool ContainsSameElements<T>(
	this 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: Boolean
A 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