Soenneker.Extensions.Dictionary 4.0.642

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Extensions.Dictionary --version 4.0.642
                    
NuGet\Install-Package Soenneker.Extensions.Dictionary -Version 4.0.642
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Extensions.Dictionary" Version="4.0.642" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.Dictionary" Version="4.0.642" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.Dictionary" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Extensions.Dictionary --version 4.0.642
                    
#r "nuget: Soenneker.Extensions.Dictionary, 4.0.642"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Extensions.Dictionary@4.0.642
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Extensions.Dictionary&version=4.0.642
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Dictionary&version=4.0.642
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Extensions.Dictionary

A collection of helpful Dictionary extension methods.

Installation

dotnet add package Soenneker.Extensions.Dictionary

Quick start

using Soenneker.Extensions.Dictionary;

Import the namespace, then call the extension methods directly on the matching value.

Common operations

  • ToFlattenedValuesList() - Flattens the values of a dictionary, where each key maps to a list of values, into a single list.
  • AddRange() - Adds (or updates!) an enumerable to a dictionary without a loop in managed code. Compiles the expression and loops over the enumerable, adding to the dictionary via the expression selector.
  • AddRangeCompiled() - Adds or updates values using a precompiled key selector. Prefer this overload in repeated or hot paths.
  • AddDictionary() - Loops over the target and adds each of the items into the source. Useful for readonly scenarios.
  • ToObject() - Iterates through each one of the keys in the dictionary to build a new T by looking up property names, and setting that to value of the key value pair.
  • TryGetKeyFromValue() - Tries to retrieve a key from a particular value in the dictionary. If there are multiple of the same value, it returns the first key.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Extensions.Dictionary:

Package Downloads
Soenneker.Swashbuckle.Authentication

A middleware implementing basic authentication and RBAC support for Swashbuckle (Swagger)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.659 46 9/4/2026
4.0.658 44 9/3/2026
4.0.657 43 9/2/2026
4.0.656 55 9/2/2026
4.0.655 51 9/2/2026
4.0.654 57 9/1/2026
4.0.653 42 9/1/2026
4.0.652 60 9/1/2026
4.0.651 89 8/31/2026
4.0.650 129 8/31/2026
4.0.649 83 8/31/2026
4.0.648 151 8/30/2026
4.0.647 80 8/30/2026
4.0.646 78 8/30/2026
4.0.645 77 8/30/2026
4.0.644 80 8/29/2026
4.0.643 81 8/29/2026
4.0.642 84 8/29/2026
4.0.641 86 8/29/2026
4.0.640 205 8/27/2026
Loading failed

Improve XML documentation