Soenneker.Extensions.Spans.Generics 11.0.40

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

Generic extension methods for rearranging and mutating writable spans without materializing another collection.

Installation

dotnet add package Soenneker.Extensions.Spans.Generics

Usage

using Soenneker.Extensions.Spans.Generics;

Span<int> choices = [1, 2, 3, 4];
choices.SecureShuffle();

SecureShuffle<T>() uses an unbiased Fisher–Yates shuffle with RandomNumberGenerator.GetInt32. It changes the original span and allocates no result collection. Empty and single-element spans are left unchanged.

The shuffle is unpredictable, but it does not erase the elements or make sensitive values safe to retain in memory.

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.
  • net11.0

    • No dependencies.

NuGet packages (1)

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

Package Downloads
Soenneker.Utils.Password

A modern .NET secure password generator

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.40 190 11/11/2026
11.0.39 99 11/10/2026
11.0.38 406 10/27/2026
11.0.37 121 10/26/2026
4.0.35 522 10/14/2026
4.0.34 142 10/14/2026
4.0.29 128 10/12/2026
4.0.28 125 10/12/2026
4.0.27 158 10/11/2026
4.0.26 378 9/24/2026
4.0.25 315 9/15/2026
4.0.24 168 9/12/2026
4.0.23 283 8/29/2026
4.0.21 137 8/29/2026
4.0.20 610 7/28/2026
4.0.19 317 7/16/2026
4.0.18 766 6/19/2026
4.0.17 482 6/5/2026
4.0.16 777 4/22/2026
4.0.15 275 3/13/2026
Loading failed

Upgrade .NET 11 release candidates to stable