Table of Contents

Namespace Cuemon.Collections.Generic

Assembly: Cuemon.Core.dll

Paginate, partition, and sort data using generic collection types that extend the .NET Base Class Library — including paginated collections, partitioned enumerables, dynamic comparers, a read-only enum dictionary, and a conditional collection. Use these types when you need paging, partitioning, or custom comparison semantics in your data processing. Start with PaginationEnumerable<T> or PaginationList<T> for paginated results, PartitionerCollection<T> or PartitionerEnumerable<T> for partitioned processing, or ConditionalCollection<T> and DynamicComparer<T> for flexible filtering and sorting without custom comparer classes.

Availability: .NET 10, .NET 9 and .NET Standard 2.0

Complements: System.Collections.Generic namespace 🔗

Related: Cuemon.Extensions.Collections.Generic namespace 📘

Extension Members

Type Ext Methods
IDecorator<ICollection> ⬇️ AddRange<T>
IDecorator<IDictionary<TKey,TValue>> ⬇️ CopyTo<TKey,TValue>, GetValueOrDefault<TKey,TValue>, TryGetValueOrFallback<TKey,TValue>, ToEnumerable<TKey,TValue>, TryAdd<TKey,TValue>, AddOrUpdate<TKey,TValue>, GetDepthIndex
IDecorator<Stack> ⬇️ TryPop<T>

Classes

Arguments

Provides static helper methods for wrapping, projecting, and concatenating arguments as arrays and enumerable sequences.

CollectionDecoratorExtensions

Extension methods for the 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 IDictionary<TKey, TValue> interface hidden behind the IDecorator<T> interface.

DynamicComparer

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

DynamicEqualityComparer

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

EnumReadOnlyDictionary<TEnum>

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

EnumerableSizeComparer<T>

Provides IEnumerable<T> size comparison.

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 IReadOnlyCollection<T>

PartitionerEnumerable<T>

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

ReferenceComparer<T>

Provides object hierarchy comparison.