Soenneker.Extensions.Object 11.0.4438

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Extensions.Object --version 11.0.4438
                    
NuGet\Install-Package Soenneker.Extensions.Object -Version 11.0.4438
                    
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.Object" Version="11.0.4438" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.Object" Version="11.0.4438" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.Object" />
                    
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.Object --version 11.0.4438
                    
#r "nuget: Soenneker.Extensions.Object, 11.0.4438"
                    
#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.Object@11.0.4438
                    
#: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.Object&version=11.0.4438
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.Object&version=11.0.4438
                    
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.Object

Object guards, numeric type checks, and JSON HTTP content using caller-supplied serialization metadata.

Installation

dotnet add package Soenneker.Extensions.Object

Create request bodies

using Soenneker.Extensions.Object;

using HttpContent content = request.ToHttpContent(MyJsonContext.Default.SearchRequest);

ToHttpContent(), ToHttpContentAndString(), and ToHttpContentWithKey() accept JsonTypeInfo<T> metadata. Their Try variants return null results and optionally log conversion errors. The caller owns and must dispose returned content objects.

Build query strings without reflection

string query = request.ToQueryString(MyJsonContext.Default.SearchRequest);

Pass source-generated JsonTypeInfo<T> metadata, as with the HTTP-content helpers. Names, ignore conditions, and converters follow that metadata. Names and values are percent-encoded, booleans and numbers use JSON formatting, and nested objects and arrays are encoded as JSON. Null inputs and empty objects return an empty string; non-object JSON roots are rejected.

Guards

  • IsObjectNumeric() checks whether an object's runtime type is numeric; null throws.
  • ThrowIfNull() throws ArgumentNullException and uses the calling member name unless a name is supplied.

Reflection extensions

For ToDictionaryViaReflection(), query strings, form encoding, property diagnostics, and ToHttpContentViaReflection(), install Soenneker.Extensions.Objects.Reflection and import Soenneker.Extensions.Objects.Reflection.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Soenneker.Extensions.Object:

Package Downloads
Soenneker.Extensions.HttpClient

A collection of helpful HttpClient extension methods, like retry and auto (de)serialization

Soenneker.Blazor.Utils.InteropEventListener

Manages the registration, removal, and disposal of .NET object references used for interop event listeners.

Soenneker.Blazor.ApiClient

A lightweight and efficient API client wrapper for Blazor applications, simplifying HTTP communication with support for asynchronous calls, cancellation tokens, and JSON serialization.

Soenneker.GitHub.Repositories

Creates, discovers, configures, and deletes GitHub repositories.

Soenneker.GitHub.Repositories.Rulesets

Creates, lists, and deletes GitHub repository rulesets

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.4446 501 11/11/2026
11.0.4445 636 11/11/2026
11.0.4444 197 11/11/2026
11.0.4443 185 11/11/2026
11.0.4442 245 11/11/2026
11.0.4441 108 11/11/2026
11.0.4440 45 11/11/2026
11.0.4438 62 11/11/2026
11.0.4436 1,079 11/10/2026
11.0.4435 4,536 11/3/2026
11.0.4434 1,597 11/3/2026
11.0.4433 488 11/3/2026
11.0.4432 431 11/3/2026
11.0.4431 89 11/3/2026
11.0.4430 779 11/3/2026
11.0.4429 532 11/3/2026
11.0.4428 784 11/2/2026
11.0.4427 2,920 10/29/2026
11.0.4426 2,551 10/27/2026
11.0.4425 259 10/26/2026
Loading failed

Upgrade .NET 11 release candidates to stable