Skip to main content
ImmutableMemory package icon

ImmutableMemory

Immutable versions of `Memory<T>` and `Span<T>`, because `ReadOnlyMemory/Span` doesn't imply the underlying memory won't be mutated. These types either wrap known immutable objects (`String`, `ImmutableArray<T>`), or they take sole ownership of a defensive copy of the underlying memory. They then provide a non-mutating API which closely resembles `ReadOnlyMemory/Span`.

Total Downloads
2.6K
2,632
Published
Jan 19, 2023
Latest stable version

Install

.NET CLI
dotnet add package ImmutableMemory --version 1.0.0
Package Manager Console
Install-Package ImmutableMemory -Version 1.0.0
PackageReference
<PackageReference Include="ImmutableMemory" Version="1.0.0" />

Frameworks

net6.0

Dependencies

[4.5.4, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.