Skip to main content
MonoAndroid1.0MonoTouch1.0.NETFramework4.5.NETStandard1.0Windows8.0WindowsPhone8.0

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> \r\n TFS ID: 1599443, GitHub SHA: https://github.com/dotnet/corefx/tree/eede273a4dfabcea608621f5e1bbf8ad00584cfb

Published
May 16, 2016
10y 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 1.2.0-rc2-24027
ProductVersions
.NET Standard
netstandard1.0
MonoAndroid
monoandroid1.0
MonoTouch
monotouch1.0
Other
.NETFramework4.5Windows8.0WindowsPhone8.0WindowsPhoneApp8.1Xamarin.Mac2.0Xamarin.TVOS1.0Xamarin.WatchOS1.0Xamarin.iOS1.0

Changes from Previous Version

v1.1.38-beta-23516v1.2.0-rc2-24027
Added Frameworks
MonoAndroid1.0MonoTouch1.0.NETFramework4.5.NETStandard1.0Windows8.0WindowsPhone8.0WindowsPhoneApp8.1Xamarin.iOS1.0Xamarin.Mac2.0Xamarin.TVOS1.0Xamarin.WatchOS1.0
Removed Frameworks
.NETPlatform5.1
Added Dependencies
System.Collections(.NETStandard1.0)
System.Diagnostics.Debug(.NETStandard1.0)
System.Globalization(.NETStandard1.0)
System.Linq(.NETStandard1.0)
System.Runtime(.NETStandard1.0)
System.Runtime.Extensions(.NETStandard1.0)
System.Threading(.NETStandard1.0)
Removed Dependencies
System.Runtime(.NETPlatform5.1)
System.Collections(.NETPlatform5.1)
System.Diagnostics.Debug(.NETPlatform5.1)
System.Linq(.NETPlatform5.1)
System.Runtime.Extensions(.NETPlatform5.1)
System.Globalization(.NETPlatform5.1)
System.Threading(.NETPlatform5.1)

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.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 11 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

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