Table of Contents

Namespace Cuemon.Collections.Generic

Assembly: Cuemon.Core.dll

The Cuemon.Collections.Generic namespace contains types that define generic collections that support paging, partitioning, dynamic comparers and some specialized collections such as a read-only enum dictionary and a generic, conditional collection. The namespace is an addition to the System.Collections.Generic namespace.

Availability: .NET 8, .NET 7, .NET 6 and .NET Standard 2.0

Complements: System.Collections.Generic namespace 🔗

Related: Cuemon.Extensions.Collections.Generic namespace 📘

Classes

Arguments

Provides a set of static methods for both typing (no conversion) and converting a variable number of arguments into its equivalent object[], System.Collections.Generic.IEnumerable<T> and T[].

CollectionDecoratorExtensions

Extension methods for the System.Collections.Generic.ICollection<T> interface hidden behind the IDecorator<T> interface.

ConditionalCollection<T>

Provides the abstract base class for a generic, conditional collection.

DictionaryDecoratorExtensions

Extension methods for the System.Collections.Generic.IDictionary<TKey, TValue> interface hidden behind the IDecorator<T> interface.

DynamicComparer

Provides a factory based way to create and wrap an System.Collections.Generic.IComparer<T> implementation.

DynamicEqualityComparer

Provides a factory based way to create and wrap an System.Collections.Generic.IEqualityComparer<T> implementation.

EnumerableSizeComparer<T>

Provides System.Collections.Generic.IEnumerable<T> size comparison.

EnumReadOnlyDictionary<TEnum>

Represents a read-only collection of key/value pairs that provides information about the specified TEnum. Implements the System.Collections.ObjectModel.ReadOnlyDictionary<TKey, TValue>

PaginationEnumerable<T>

Represents a generic and read-only pagination sequence.

PaginationList<T>

Represents an eagerly materialized generic and read-only pagination list.

PaginationOptions

Configuration options for PaginationEnumerable<T> and PaginationList<T>.

PartitionerCollection<T>

Represents a generic and read-only collection that is iterated in partitions. Implements the PartitionerEnumerable<T> Implements the System.Collections.Generic.IReadOnlyCollection<T>

PartitionerEnumerable<T>

Exposes the enumerator, which supports iteration in partitions over a collection of a specified type. Implements the System.Collections.Generic.IEnumerable<T>

ReferenceComparer<T>

Provides object hierarchy comparison.