Namespace Cuemon.Extensions.Collections.Generic
Assembly: Cuemon.Extensions.Collections.Generic.dll
Partition, paginate, shuffle, and manage generic collections without writing custom extension methods. Use this namespace when you need safe, declarative collection operations like chunking, shuffling, ordering, or dictionary merging. Start with Chunk<T> or ToPagination<T> for batch processing of sequences, or AddOrUpdate on dictionaries for merge semantics.
Availability: .NET 10, .NET 9 and .NET Standard 2.0
Complements: Cuemon.Collections.Generic namespace 📘
Extension Members
| Type | Ext | Methods |
|---|---|---|
| ICollection |
⬇️ | AddRange<T>, ToPartitioner<T> |
| IEnumerable |
⬇️ | Chunk<T>, Shuffle<T>, OrderAscending<T>, OrderDescending<T>, RandomOrDefault<T>, ToPagination<T>, ToPaginationList<T>, ToPartitioner<T> |
| IDictionary<TKey, TValue> | ⬇️ | CopyTo<TKey, TValue>, GetValueOrDefault<TKey, TValue>, TryGetValueOrFallback<TKey, TValue>, ToEnumerable<TKey, TValue>, TryAdd<TKey, TValue>, AddOrUpdate<TKey, TValue> |
| IEnumerable |
⬇️ | Chunk<T>, Shuffle<T>, OrderAscending<T>, OrderDescending<T>, RandomOrDefault<T>, ToPagination<T>, ToPaginationList<T> |
| IEnumerable<KeyValuePair<TKey, TValue>> | ⬇️ | ToDictionary<TKey, TValue> |
| IList |
⬇️ | Remove<T>, HasIndex<T>, Next<T>, Previous<T>, TryAdd<T> |
| Queue |
⬇️ | TryPeek<T> |
| Stack |
⬇️ | TryPop<T> |
| T | ⬇️ | Yield<T> |
Classes
CollectionExtensions
Extension methods for the ICollection<T> interface.
DictionaryExtensions
Extension methods for the IDictionary<TKey, TValue> interface.
EnumerableExtensions
Extension methods for the IEnumerable<T> interface.
ListExtensions
Extension methods for the IList<T> interface.