Lean  $LEAN_TAG$
QuantConnect.Util.ListComparer< T > Class Template Reference

An implementation of IEqualityComparer<T> for List<T>. Useful when using a List<T> as the key of a collection. More...

Inheritance diagram for QuantConnect.Util.ListComparer< T >:
[legend]

Public Member Functions

bool Equals (IReadOnlyCollection< T > x, IReadOnlyCollection< T > y)
 Determines whether the specified objects are equal. More...
 
int GetHashCode (IReadOnlyCollection< T > obj)
 Returns a hash code for the specified object. More...
 

Detailed Description

An implementation of IEqualityComparer<T> for List<T>. Useful when using a List<T> as the key of a collection.

Template Parameters
TThe list type

Definition at line 26 of file ListComparer.cs.

Member Function Documentation

◆ Equals()

bool QuantConnect.Util.ListComparer< T >.Equals ( IReadOnlyCollection< T >  x,
IReadOnlyCollection< T >  y 
)

Determines whether the specified objects are equal.

Returns
true if the specified objects are equal; otherwise, false.

Definition at line 30 of file ListComparer.cs.

◆ GetHashCode()

int QuantConnect.Util.ListComparer< T >.GetHashCode ( IReadOnlyCollection< T >  obj)

Returns a hash code for the specified object.

Returns
A hash code for the specified object created from combining the hash code of all the elements in the collection.

Definition at line 38 of file ListComparer.cs.


The documentation for this class was generated from the following file: