Pixata.Extensions 2.21.0

dotnet add package Pixata.Extensions --version 2.21.0
                    
NuGet\Install-Package Pixata.Extensions -Version 2.21.0
                    
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="Pixata.Extensions" Version="2.21.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pixata.Extensions" Version="2.21.0" />
                    
Directory.Packages.props
<PackageReference Include="Pixata.Extensions" />
                    
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 Pixata.Extensions --version 2.21.0
                    
#r "nuget: Pixata.Extensions, 2.21.0"
                    
#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 Pixata.Extensions@2.21.0
                    
#: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=Pixata.Extensions&version=2.21.0
                    
Install as a Cake Addin
#tool nuget:?package=Pixata.Extensions&version=2.21.0
                    
Install as a Cake Tool

Pixata.Extensions Pixata.Extensions Nuget package

Pixata

Some useful utility classes and methods I've developed over the past few years.

This is the shared kernel of the Pixata packages. It has no dependency on EF Core, ASP.NET Core or anything else that would stop you referencing it from a Blazor WASM app, so the types that both halves of a client/server feature need are kept here.

A Nuget package is available for this project.

Documentation

The documentation is split over the following pages...

Page What's in it
API responses ApiResponse<T>, the result type used across these packages instead of exceptions, its states, and how to compose calls that return one. Also Yunit, which stands in for void
String extension methods Joining collections into strings, splitting camel case, working with multi-line strings, cleaning up strings and UK postcodes
Number extension methods Ordinal suffixes, percentages, durations, file sizes, pluralisation, Hebrew numerals and fractions
Date extension methods Pretty date formatting, start and end of week, month and day, and human-friendly date ranges
Collection extension methods Observable collections, ForEach, Flatten, and synchronising a collection of entities with a collection of DTOs
Object extension methods Base64 encoding, shallow cloning and dumping an object's properties for debugging
Exception extension methods Flattening the InnerException stack into readable text
Enum helpers Listing the members of an enum with display-friendly names
Caching GetOrCreateSafe(), which adds cache stampede protection to IMemoryCache, and the trouble with caching EF Core entities
Shared models The auditing models, the encryption DTOs and UploadFileDto, which are shared between the client-side and server-side packages
  • Pixata.Blazor - Blazor components, including one that renders an ApiResponse<T>
  • Pixata.AspNetCore - server-side helpers, auditing and payload encryption
  • Pixata.Email - a MailKit wrapper that returns an ApiResponse<Yunit>
Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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 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 (5)

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

Package Downloads
Pixata.Blazor

A set of reusable Blazor components that I found useful. Use at your own risk!

Pixata.Blazor.TelerikComponents

A set of reusable Blazor components that rely on the Blazor components produced by Telerik. This compliments the Pixata.Blazor package

Pixata.Email

An email service for use in .NET Core projects. See the GitHub page for more information

Pixata.AspNetCore

A set of reusable ASP.NET Core extensions that I found useful

Pixata.SimilarityChooser

A utility for finding matching elements in a collection

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.21.0 272 10/6/2026
2.20.0 374 9/8/2026
2.19.0 177 9/3/2026
2.17.0 474 8/17/2026
2.15.0 357 7/7/2026
2.14.0 132 7/7/2026
2.13.0 146 7/7/2026
2.12.0 273 6/9/2026
2.11.1 148 6/9/2026
2.11.0 123 6/9/2026
2.10.0 137 6/9/2026
2.9.1 128 6/9/2026
2.9.0 186 6/8/2026
2.8.0 298 6/1/2026
2.7.0 191 5/31/2026
2.6.0 218 5/24/2026
2.5.1 230 5/7/2026
2.5.0 138 5/7/2026
2.4.0 153 5/5/2026
2.3.2 358 4/19/2026
Loading failed