FrameIT
REST_JSON_API.CollectionComparer< TElement > Class Template Reference

IEqualityComparer<T> for a collection. More...

Inheritance diagram for REST_JSON_API.CollectionComparer< TElement >:

Public Member Functions

 CollectionComparer (IEqualityComparer< TElement > elementComparer=null)
 Initialize with a specific element comparer. More...
 
bool Equals (ICollection< TElement > x, ICollection< TElement > y)
 Determines whether the specified objects are equal. More...
 
int GetHashCode (ICollection< TElement > obj)
 Returns a hash code for the specified object. More...
 

Properties

static CollectionComparer< TElement > Default = new CollectionComparer<TElement>() [get]
 Gets an instance using EqualityComparer<T>.Default as the element comparer. More...
 

Private Attributes

readonly IEqualityComparer< TElement > _elementComparer
 

Detailed Description

IEqualityComparer<T> for a collection.

Constructor & Destructor Documentation

◆ CollectionComparer()

REST_JSON_API.CollectionComparer< TElement >.CollectionComparer ( IEqualityComparer< TElement >  elementComparer = null)

Initialize with a specific element comparer.

Member Function Documentation

◆ Equals()

bool REST_JSON_API.CollectionComparer< TElement >.Equals ( ICollection< TElement >  x,
ICollection< TElement >  y 
)

Determines whether the specified objects are equal.

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

◆ GetHashCode()

int REST_JSON_API.CollectionComparer< TElement >.GetHashCode ( ICollection< TElement >  obj)

Returns a hash code for the specified object.

Returns
A hash code for the specified object.
Parameters
objThe T:System.Object for which a hash code is to be returned.

Member Data Documentation

◆ _elementComparer

readonly IEqualityComparer<TElement> REST_JSON_API.CollectionComparer< TElement >._elementComparer
private

Property Documentation

◆ Default

CollectionComparer<TElement> REST_JSON_API.CollectionComparer< TElement >.Default = new CollectionComparer<TElement>()
staticget

Gets an instance using EqualityComparer<T>.Default as the element comparer.


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