Namespace Cuemon.Collections.Generic
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 9, .NET 8 and .NET Standard 2.0
Complements: System.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[], IEnumerable<T> and T[].
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.
EnumerableSizeComparer<T>
Provides IEnumerable<T> size comparison.
EnumReadOnlyDictionary<TEnum>
Represents a read-only collection of key/value pairs that provides information about the specified TEnum
.
Implements the 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 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.