StarThrower.Collections 2.0.0

dotnet add package StarThrower.Collections --version 2.0.0
                    
NuGet\Install-Package StarThrower.Collections -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="StarThrower.Collections" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StarThrower.Collections" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="StarThrower.Collections" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add StarThrower.Collections --version 2.0.0
                    
#r "nuget: StarThrower.Collections, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package StarThrower.Collections@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=StarThrower.Collections&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=StarThrower.Collections&version=2.0.0
                    
Install as a Cake Tool

StarThrower.Collections

General-purpose collection types for .NET.

StarThrower.Collections currently provides a single, obsolete compatibility type: ReadOnlyDictionary<TKey, TValue>, retained for consumers migrating from older versions of this library.


Installation

dotnet add package StarThrower.Collections

ReadOnlyDictionary<TKey, TValue>

Obsolete. Use System.Collections.ObjectModel.ReadOnlyDictionary<TKey, TValue> directly instead.

This type predates the BCL's own ReadOnlyDictionary<TKey, TValue> (introduced in .NET 4.5). It is now a thin subclass of the BCL type, provided only so existing code referencing StarThrower.Collections.ReadOnlyDictionary<TKey, TValue> continues to compile and behave identically.

// Old code using this package's type still works, but is flagged obsolete:
var dict = new StarThrower.Collections.ReadOnlyDictionary<string, int>(source);

// New code should use the BCL type directly:
var dict = new System.Collections.ObjectModel.ReadOnlyDictionary<string, int>(source);

License

Copyright © 2026 Stephen Elmer. Licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 102 7/4/2026