Skip to main content
MonoAndroid1.0MonoTouch1.0.NETFramework4.5.NETFramework4.6.NETFramework4.6.1.NETCoreApp2.1

This package provides collections that are thread safe and guaranteed to never change their contents, also known as immutable collections. Like strings, any methods that perform modifications will not change the existing instance but instead return a new instance. For efficiency reasons, the implementation uses a sharing mechanism to ensure that newly created instances share as much data as possible with the previous instance while ensuring that operations have a predictable time complexity. Commonly Used Types: System.Collections.Immutable.ImmutableArray System.Collections.Immutable.ImmutableArray<T> System.Collections.Immutable.ImmutableDictionary System.Collections.Immutable.ImmutableDictionary<TKey,TValue> System.Collections.Immutable.ImmutableHashSet System.Collections.Immutable.ImmutableHashSet<T> System.Collections.Immutable.ImmutableList System.Collections.Immutable.ImmutableList<T> System.Collections.Immutable.ImmutableQueue System.Collections.Immutable.ImmutableQueue<T> System.Collections.Immutable.ImmutableSortedDictionary System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue> System.Collections.Immutable.ImmutableSortedSet System.Collections.Immutable.ImmutableSortedSet<T> System.Collections.Immutable.ImmutableStack System.Collections.Immutable.ImmutableStack<T>

Published
Apr 8, 2021
5y ago
Total Downloads
4.3B
4,266,290,095

Deprecated Package Version

Reason: Legacy

Versions targeting out-of-support .NET versions

Install

dotnet add package System.Collections.Immutable --version 6.0.0-preview.3.21201.4
ProductVersions
.NET Standard
netstandard1.0netstandard1.3netstandard2.0
MonoAndroid
monoandroid1.0
MonoTouch
monotouch1.0
Universal Windows Platform
uap10.0.16299
Other
.NETCoreApp2.1.NETFramework4.5.NETFramework4.6.NETFramework4.6.1.NETPortable4.5-Profile259Windows8.0WindowsPhone8.0WindowsPhoneApp8.1Xamarin.Mac2.0Xamarin.TVOS1.0Xamarin.WatchOS1.0Xamarin.iOS1.0

Changes from Previous Version

No structural changes between v6.0.0-preview.2.21154.6 and v6.0.0-preview.3.21201.4.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.NuGet marks this package as deprecated. Review the publisher's migration guidance before adopting it.Compatibility metadata lists 18 target frameworks; confirm the exact target used by your application.The published metadata declares 26 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.