Table of Contents

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

T

type of the items

Inheritance
EquatableCollection<T>
Implements
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

list IEnumerable<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

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.