Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21a69aa

Browse files
Add markdown readme for System.Collections.Immutable (#71247)
* Update System.Collections.Immutable.csproj * Add README.md * Add README.md * Delete README.md * Update PackageDescription
1 parent 8803e61 commit 21a69aa

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## About
2+
3+
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.
4+
5+
The `System.Collections.Immutable` library is built-in as part of the shared framework in .NET Runtime. The package can be installed when you need to use it in other target frameworks.
6+
7+
For more information, see the documentation:
8+
9+
- [Collections and Data Structures](https://docs.microsoft.com/dotnet/standard/collections/)
10+
- [System.Collections.Immutable API reference](https://docs.microsoft.com/dotnet/api/system.collections.immutable)

src/libraries/System.Collections.Immutable/src/System.Collections.Immutable.csproj

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,8 @@
44
<IsPackable>true</IsPackable>
55
<PackageDescription>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.
66

7-
Commonly Used Types:
8-
System.Collections.Immutable.ImmutableArray
9-
System.Collections.Immutable.ImmutableArray&lt;T&gt;
10-
System.Collections.Immutable.ImmutableDictionary
11-
System.Collections.Immutable.ImmutableDictionary&lt;TKey,TValue&gt;
12-
System.Collections.Immutable.ImmutableHashSet
13-
System.Collections.Immutable.ImmutableHashSet&lt;T&gt;
14-
System.Collections.Immutable.ImmutableList
15-
System.Collections.Immutable.ImmutableList&lt;T&gt;
16-
System.Collections.Immutable.ImmutableQueue
17-
System.Collections.Immutable.ImmutableQueue&lt;T&gt;
18-
System.Collections.Immutable.ImmutableSortedDictionary
19-
System.Collections.Immutable.ImmutableSortedDictionary&lt;TKey,TValue&gt;
20-
System.Collections.Immutable.ImmutableSortedSet
21-
System.Collections.Immutable.ImmutableSortedSet&lt;T&gt;
22-
System.Collections.Immutable.ImmutableStack
23-
System.Collections.Immutable.ImmutableStack&lt;T&gt;</PackageDescription>
7+
The System.Collections.Immutable library is built-in as part of the shared framework in .NET Runtime. The package can be installed when you need to use it in other target frameworks.</PackageDescription>
8+
<PackageReadmeFile>README.md</PackageReadmeFile>
249
</PropertyGroup>
2510

2611
<ItemGroup>
@@ -104,6 +89,7 @@ System.Collections.Immutable.ImmutableStack&lt;T&gt;</PackageDescription>
10489
<Compile Include="$(CommonPath)System\Runtime\Versioning\NonVersionableAttribute.cs"
10590
Link="Common\System\Runtime\Versioning\NonVersionableAttribute.cs" />
10691
<None Include="Interfaces.cd" />
92+
<None Include="README.md" Pack="true" PackagePath="\"/>
10793
</ItemGroup>
10894

10995
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">

0 commit comments

Comments
 (0)