Click or drag to resize
Accord.NET (logo)

MatrixSetEqualsT Method

Compares two enumerables for set equality. Two enumerables are set equal if they contain the same elements, but not necessarily in the same order.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
public static bool SetEquals<T>(
	this IEnumerable<T> list1,
	IEnumerable<T> list2
Request Example View Source


Type: System.Collections.GenericIEnumerableT
The first set.
Type: System.Collections.GenericIEnumerableT
The first set.

Type Parameters

The element type.

Return Value

Type: Boolean
True if the two sets contains the same elements, false otherwise.

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