Class EquatableCollection<T>
- Namespace
- ExControls
- Assembly
- ExControls.dll
Provides the base class for a generic collection that supports equality (two collections are equal when they contain equal items in the same order).
public class EquatableCollection<T> : Collection<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable
Type Parameters
Ttype of the items
- Inheritance
-
Collection<T>EquatableCollection<T>
- Implements
-
IList<T>ICollection<T>IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
EquatableCollection(IEnumerable<T>)
Initializes a new instance of the EquatableCollection<T> class with a copy of the given items.
public EquatableCollection(IEnumerable<T> list)
Parameters
listIEnumerable<T>items of the new collection
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.