System.Collections.Immutable 5.0.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>

There is a newer prerelease version of this package available.
See the version list below for details.

Requires NuGet 2.8.6 or higher.

Install-Package System.Collections.Immutable -Version 5.0.0
dotnet add package System.Collections.Immutable --version 5.0.0
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add System.Collections.Immutable --version 5.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: System.Collections.Immutable, 5.0.0"
For F# scripts that support #r syntax, copy this into the source code to reference the package.
// Install System.Collections.Immutable as a Cake Addin
#addin nuget:?package=System.Collections.Immutable&version=5.0.0

// Install System.Collections.Immutable as a Cake Tool
#tool nuget:?package=System.Collections.Immutable&version=5.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

https://go.microsoft.com/fwlink/?LinkID=799421

  • .NETCoreApp 2.1

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETFramework 4.6

  • .NETFramework 4.6.1

  • .NETStandard 1.0

  • .NETStandard 1.3

  • .NETStandard 2.0

  • MonoAndroid 1.0

    • No dependencies.
  • MonoTouch 1.0

    • No dependencies.
  • Portable Class Library (.NETFramework 4.5, Windows 8.0, WindowsPhone 8.0, WindowsPhoneApp 8.1)

    • No dependencies.
  • UAP 10.0.16299

  • Windows 8.0

    • No dependencies.
  • WindowsPhone 8.0

    • No dependencies.
  • WindowsPhoneApp 8.1

    • No dependencies.
  • Xamarin.iOS 1.0

    • No dependencies.
  • Xamarin.Mac 2.0

    • No dependencies.
  • Xamarin.TVOS 1.0

    • No dependencies.
  • Xamarin.WatchOS 1.0

    • No dependencies.

NuGet packages (1.3K)

Showing the top 5 NuGet packages that depend on System.Collections.Immutable:

Package Downloads
System.Reflection.Metadata
This packages provides a low-level .NET (ECMA-335) metadata reader and writer. It's geared for performance and is the ideal choice for building higher-level libraries that intend to provide their own object model, such as compilers. Commonly Used Types: System.Reflection.Metadata.MetadataReader System.Reflection.PortableExecutable.PEReader System.Reflection.Metadata.Ecma335.MetadataBuilder System.Reflection.PortableExecutable.PEBuilder System.Reflection.PortableExecutable.ManagedPEBuilder
Microsoft.EntityFrameworkCore
Entity Framework Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations. EF Core works with SQL Server, Azure SQL Database, SQLite, Azure Cosmos DB, MySQL, PostgreSQL, and other databases through a provider plugin API. Commonly Used Types: Microsoft.EntityFrameworkCore.DbContext Microsoft.EntityFrameworkCore.DbSet
Microsoft.CodeAnalysis.Common
A shared package used by the Microsoft .NET Compiler Platform ("Roslyn"). Do not install this package manually, it will be added as a prerequisite by other packages that require it. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/93b8af2b1f2c9d6318f0fceddc04bb736684bf66.
Microsoft.VisualStudio.Web.CodeGeneration.Contracts
Contains interfaces for Project Model and messaging for scaffolding.
Microsoft.VisualStudio.Web.CodeGeneration
Contains the CodeGenCommand that finds the appropriate code generator and invokes it from project dependencies.

GitHub repositories (362)

Showing the top 5 popular GitHub repositories that depend on System.Collections.Immutable:

Repository Stars
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
icsharpcode/ILSpy
.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
dotnet/efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
JamesNK/Newtonsoft.Json
Json.NET is a popular high-performance JSON framework for .NET

Version History

Version Downloads Last updated
6.0.0-preview.3.21201.4 878 4/8/2021
6.0.0-preview.2.21154.6 11,898 3/11/2021
6.0.0-preview.1.21102.12 18,690 2/12/2021
5.0.0 9,330,615 11/9/2020
5.0.0-rc.2.20475.5 165,832 10/13/2020
5.0.0-rc.1.20451.14 192,457 9/14/2020
5.0.0-preview.8.20407.11 227,946 8/25/2020
5.0.0-preview.7.20364.11 59,394 7/21/2020
5.0.0-preview.6.20305.6 2,573 6/25/2020
5.0.0-preview.5.20278.1 2,976 6/10/2020
5.0.0-preview.4.20251.6 3,861 5/18/2020
5.0.0-preview.3.20214.6 99,356 4/23/2020
5.0.0-preview.2.20160.6 53,613 4/2/2020
5.0.0-preview.1.20120.5 3,641 3/16/2020
1.7.1 29,706,968 5/12/2020
1.7.0 34,974,032 12/3/2019
1.7.0-preview3.19551.4 80,520 11/13/2019
1.7.0-preview2.19523.17 28,229 11/1/2019
1.7.0-preview1.19504.10 316,602 10/15/2019
1.6.0 14,975,048 9/23/2019
1.6.0-rc1.19456.4 36,656 9/16/2019
1.6.0-preview9.19421.4 671,179 9/4/2019
1.6.0-preview9.19416.11 604 9/4/2019
1.6.0-preview8.19405.3 115,310 8/13/2019
1.6.0-preview7.19362.9 67,026 7/23/2019
1.6.0-preview6.19303.8 116,698 6/12/2019
1.6.0-preview6.19264.9 669 9/4/2019
1.6.0-preview5.19224.8 164,784 5/6/2019
1.6.0-preview4.19212.13 24,169 4/18/2019
1.6.0-preview3.19128.7 141,184 3/6/2019
1.6.0-preview.19073.11 30,120 1/29/2019
1.6.0-preview.18571.3 45,394 12/3/2018
1.5.0 63,070,688 5/29/2018
1.5.0-rc1 204,674 5/6/2018
1.5.0-preview2-26406-04 132,632 4/10/2018
1.5.0-preview1-26216-02 360,037 2/26/2018
1.4.0 36,379,602 8/11/2017
1.4.0-preview2-25405-01 9,128 6/27/2017
1.4.0-preview1-25305-02 12,073 5/9/2017
1.3.1 37,946,407 1/3/2017
1.3.0 38,170,966 11/15/2016
1.3.0-preview1-24530-04 77,594 10/24/2016
1.2.0 129,250,260 6/27/2016
1.2.0-rc2-24027 6,477,651 5/16/2016
1.1.38-beta-23516 33,379 11/18/2015
1.1.38-beta-23409 3,491 10/15/2015
1.1.38-beta-23225 73,955 9/1/2015
1.1.37 4,576,495 7/29/2015
1.1.37-beta-23109 18,632 7/27/2015
1.1.37-beta-23019 3,194 6/30/2015
1.1.36 3,634,208 5/11/2015
1.1.34-rc 26,116 3/6/2015
1.1.33-beta 293,179 12/10/2014
1.1.32-beta 143,530 10/10/2014