Click or drag to resize

EnumerableExtensionsContainsSameElementsT Method

Checks if two collections have same length and exactly same elements, but ignores the order.

Namespace:  Omada.OE.Solution.OIM.Assembly.AppLogic.Extensions
Assembly:  Omada.OE.Solution.OIM.Assembly (in Omada.OE.Solution.OIM.Assembly.dll) Version: 15.0.0.0
Syntax
C#
public static bool ContainsSameElements<T>(
	this IEnumerable<T> list1,
	IEnumerable<T> list2
)

Parameters

list1
Type: System.Collections.GenericIEnumerableT
The first collection.
list2
Type: System.Collections.GenericIEnumerableT
The second collection.

Type Parameters

T
The single item type.

Return Value

Type: Boolean
True if two collections have same length and exactly same elements

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