![]() |
VOOZH | about |
dotnet add package C5 --version 3.0.0
NuGet\Install-Package C5 -Version 3.0.0
<PackageReference Include="C5" Version="3.0.0" />
<PackageVersion Include="C5" Version="3.0.0" />Directory.Packages.props
<PackageReference Include="C5" />Project file
paket add C5 --version 3.0.0
#r "nuget: C5, 3.0.0"
#:package C5@3.0.0
#addin nuget:?package=C5&version=3.0.0Install as a Cake Addin
#tool nuget:?package=C5&version=3.0.0Install as a Cake Tool
👁 NuGet version (C5)
👁 .github/workflows/main.yml
The C5 library is a set of generic collection classes (or container classes) for the C# programming language and other generics-enabled languages on later versions of the .NET runtime (Common Language Runtime).
The C5 library provides a wide range of classic data structures, rich functionality, the best possible asymptotic time complexity, documented performance, and a thoroughly tested implementation.
The overall goal is for C5 to be a generic collection library for the C# programming language and the Common Language Infrastructure (CLI) whose functionality, efficiency and quality meets or exceeds what is available for similar contemporary programming platforms.
The design has been influenced by the collection libraries for Java and SmallTalk and the published critique of these.
However, it contains functionality and a regularity of design that considerably exceeds that of the standard libraries for those languages.
Research notes are available here: https://www.itu.dk/research/c5/.
There are already other generic collection libraries for C#/CLI, including the System.Collections.Generic namespace introduced with .NET 2.0 and Wintellect's Power Collections for .NET by Peter Golde (http://powercollections.codeplex.com/).
The CLI generic collection library as implemented by in Microsoft .NET Framework 2.0 provides a limited choice of data structures.
In general, the CLI Framework library has a proliferation of methods variants and rather poor orthogonality.
Collection implementations such as array lists and linked lists have much the same functionality but do not implement a common interface. This impairs the learnability of the library in contexts where nano-second efficiency is more important that rich functionality, and the need to support also rather resource-constrained run-time systems.
The Power Collections library by Peter Golde augments the CLI version 2.0 collection library with various data structures and algorithms.
However, it accepts the basic design of the CLI collection classes and therefore suffers from some of the same shortcommings, and also does not provide most of the advanced functionality (updatable views, snapshots, directed enumeration, priority queue handles, ...) of C5.
Thus, in our opinion, C5 provides the most powerful, well-structured and scalable generic collections library available for C#/CLI.
This is not entirely clear, but it may stand for Copenhagen Comprehensive Collection Classes for C#, although the library may be used from VB.NET, F# and other CLI languages, not just C#. It has nothing to do with a Microsoft Dynamics product that used to be called Concorde C5/Damgaard C5/Navision C5, nor a real-time operation system called C5 (or Chorus), nor the C5 Corporation (system visualization), nor an Eclipse plug-in called C5, nor with cars such as the Citroën C5 or Corvette C5 or Clive Sinclair's ill-fated C5 concept vehicle.
The name may be inspired by the versatile C4 plastic explosive known from e.g. James Bond movies.
All trademarks belong to their owners.
At the time of writing, library design and implementation are complete, and extensive unit tests have been written and applied systematically.
Most of the library API documentation is in place but requires proof-reading.
The C5 implementation was originally built on .NET 2.0 and has only recently been upgraded to .NET 4.0. It does not (yet) use a great number of the new features introduced with C# 3 and 4, notably LINQ and covariant and contravariant type parameters.
C5 targets .NET Standard 2.0, NET 6.0, and .NET 8.0.
Get C5 from NuGet:
dotnet add package C5
Building the unit test project requires NUnit. If you have NuGet installed it should automatically add the reference.
There are more than 1400 NUnit test cases which should execute in less than 5 seconds. All should pass.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on C5:
| Package | Downloads |
|---|---|
|
Wavefront.SDK.CSharp
This package provides support for sending metrics, histograms and opentracing spans to Wavefront via proxy or direct ingestion. |
|
|
TDigest
Streaming Percentile Estimation |
|
|
Gridsum.DataflowEx
Gridsum.DataflowEx is a dataflow and etl framework redesigned on top of Microsoft TPL Dataflow library with Object-Oriented Programming in mind. DataflowEx enables you to write reusable components and easily link them together as a high-level dataflow graph while still having the power of low-level blocks from TPL Dataflow. Other cool features include: Dataflow lifecycle management, built-in dataflow health monitor, cyclic graph auto completion support, sql bulk insertion support, etc. More information is available at: https://github.com/gridsum/dataflowex |
|
|
kino.Consensus
Framework for building actors networks |
|
|
kino
Framework for building actors networks |
Showing the top 16 popular GitHub repositories that depend on C5:
| Repository | Stars |
|---|---|
|
SparkDevNetwork/Rock
An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
|
|
|
Lunat1q/Catchem-PoGo
Project is DEAD, Discord server: https://discord.me/Catchem
|
|
|
microsoft/psi
Platform for Situated Intelligence
|
|
|
brianzhouzc/RocketBot
An automated Pokémon Go Bot
|
|
|
zenogantner/MyMediaLite
recommender system library for the CLR (.NET)
|
|
|
FeroxRev/Pokemon-Go-Rocket-API
Client API Library
|
|
|
gridsum/DataflowEx
A .NET dataflow and etl framework built upon Microsoft TPL Dataflow library
|
|
|
juhgiyo/EpPathFinding.cs
A jump point search algorithm for grid based games in C#
|
|
|
goldshtn/minidumper
Write minidumps of .NET processes with full memory, only CLR heaps, or no memory at all
|
|
| platformdotnet/Platform.VirtualFileSystem | |
|
d-haxton/HaxtonBot
Still the fastest.
|
|
|
mapic91/JxqyHD
剑侠情缘外传 月影传说 高清版
|
|
|
dimatrubca/book-exchange-app
ASP.NET Core Web API with React, Entity Framework, Elasticsearch, Paypal integration
|
|
|
Adoxio/xRM-Portals-Community-Edition
The definitive edition of Microsoft Open Source Portals, supported by the experts in portals.
|
|
|
azsdaja/Osnowa
a roguelike framework for C# with ECS and Unity integration
|
|
|
ShokoAnime/ShokoDesktop
Repository for Shoko Desktop
|
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 973,673 | 6/5/2024 |
| 3.0.0-rc | 97,984 | 12/22/2021 |
| 3.0.0-beta | 1,529,261 | 2/19/2019 |
| 2.5.3 | 9,818,539 | 7/24/2017 |
| 2.5.0 | 21,394 | 7/7/2017 |
| 2.4.5947.17249 | 209,608 | 4/13/2016 |
| 2.4.5828.26833 | 18,438 | 12/16/2015 |
| 2.4.5827.29151 | 2,849 | 12/15/2015 |
| 2.3.0.1 | 430,391 | 6/16/2014 |
| 2.3.0 | 6,719 | 6/10/2014 |
| 2.2.5073.27396 | 123,821 | 11/21/2013 |
| 2.2.4881.16939 | 21,478 | 5/13/2013 |
| 2.2.4822.42600 | 58,672 | 3/15/2013 |
| 2.1.4492.18142 | 41,517 | 4/19/2012 |
| 2.0.4398.25000 | 3,774 | 2/18/2012 |
Release 3.0.0 of 2024-06-05
- C5 now targets .NET Standard 2.0, .NET 6.0 and .NET 8.0.
- Breaking change: Rec<T1, T2, ...> type removed.
- Breaking change: All public readonly fields are now properties.
- Breaking change: EventTypeEnum is now EventType.
- Breaking change: custom KeyValuePair<K, V> has been replaced by the standard System.Collections.Generic.KeyValue<TKey, TValue> for better compatibility.
- Breaking change: EnumerationDirection is now Direction.
- Breaking change: Serializable attribute removed.