Class CollectionComparer<T>
Compares two collections for strict equality by ensuring they have the same items in the same order.
Namespace: Neon.Xunit
Assembly: Neon.Xunit.dll
Syntax
public class CollectionComparer<T> where T : IEquatable<T>
Type Parameters
Name | Description |
---|---|
T | The collection item type. |
Methods
Equals(IEnumerable<T>, IEnumerable<T>)
Returns true if two collections are identical.
Declaration
public bool Equals(IEnumerable<T> collection1, IEnumerable<T> collection2)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | collection1 | Collection #1. |
IEnumerable<T> | collection2 | Collection #2 |
Returns
Type | Description |
---|---|
bool |
|
GetHashCode(IEnumerable<T>)
Not implemented.
Declaration
public int GetHashCode(IEnumerable<T> obj)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | obj |
Returns
Type | Description |
---|---|
int |