Dev.Util.Collections
1.3.0
dotnet add package Dev.Util.Collections --version 1.3.0
NuGet\Install-Package Dev.Util.Collections -Version 1.3.0
<PackageReference Include="Dev.Util.Collections" Version="1.3.0" />
<PackageVersion Include="Dev.Util.Collections" Version="1.3.0" />
<PackageReference Include="Dev.Util.Collections" />
paket add Dev.Util.Collections --version 1.3.0
#r "nuget: Dev.Util.Collections, 1.3.0"
#:package Dev.Util.Collections@1.3.0
#addin nuget:?package=Dev.Util.Collections&version=1.3.0
#tool nuget:?package=Dev.Util.Collections&version=1.3.0
Dev.Util.Collections
Advanced collection extensions and data structures for the Dev.Util ecosystem. Includes efficient pagination, dictionary helpers, fluent set operations, and priority queues.
Features
1. Priority Queue (v1.3.0)
A lightweight priority queue implementation compatible with netstandard2.0+.
using Dev.Util.Collections;
var queue = new SimplePriorityQueue<string, int>();
queue.Enqueue("Low Priority", 10);
queue.Enqueue("High Priority", 1);
string top = queue.Dequeue(); // "High Priority"
2. Fluent Set Operations (v1.3.0)
Chainable HashSet modifications without losing the reference.
var set = new HashSet<int> { 1, 2, 3 };
set.UnionWithFluent(new[] { 3, 4, 5 })
.ExceptWithFluent(new[] { 1 });
// set is now { 2, 3, 4, 5 }
3. Immutable Converters (v1.3.0)
Quick helpers for System.Collections.Immutable.
var list = new[] { 1, 2, 3 }.ToImmutableList();
var map = new Dictionary<string, int>().ToImmutableDictionary();
4. Pagination & Dictionary
// Pagination
var paged = list.ToPagedList(pageNumber: 1, pageSize: 10);
bool hasNext = paged.HasNextPage;
// Dictionary
var val = dict.GetValueOrDefault("key", "default");
dict.AddOrUpdate("key", "new value");
Installation
dotnet add package Dev.Util.Collections
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Dev.Util.Core (>= 1.3.0)
- System.Collections.Immutable (>= 10.0.1)
-
net8.0
- Dev.Util.Core (>= 1.3.0)
- System.Collections.Immutable (>= 10.0.1)
-
net9.0
- Dev.Util.Core (>= 1.3.0)
- System.Collections.Immutable (>= 10.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Dev.Util.Collections:
| Package | Downloads |
|---|---|
|
Dev.Util
The complete Dev.Util ecosystem for .NET. One package to rule them all. Provides access to Core, Collections, IO, Security, Web, Reflection, Tasks, and Json modules. |
GitHub repositories
This package is not used by any popular GitHub repositories.