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>
dotnet add package System.Collections.Immutable --version 6.0.1
Install-Package System.Collections.Immutable -Version 6.0.1
| 包名 | 版本要求 |
|---|---|
| System.Runtime.CompilerServices.Unsafe | [6.0.0, ) |
| System.Memory | [4.5.4, ) |
| 包名 | 版本要求 |
|---|---|
| System.Runtime.CompilerServices.Unsafe | [6.0.0, ) |
| System.Memory | [4.5.4, ) |
| 作者 | Microsoft |
|---|---|
| 发布时间 | 2024-11-12 18:24:15 |
| 项目主页 | https://dot.net/ |
| 许可证 | https://www.nuget.org/packages/System.Collections.Immutable/6.0.1/license |