Cogito.Core
4.0.0
dotnet add package Cogito.Core --version 4.0.0
NuGet\Install-Package Cogito.Core -Version 4.0.0
<PackageReference Include="Cogito.Core" Version="4.0.0" />
<PackageVersion Include="Cogito.Core" Version="4.0.0" />
<PackageReference Include="Cogito.Core" />
paket add Cogito.Core --version 4.0.0
#r "nuget: Cogito.Core, 4.0.0"
#:package Cogito.Core@4.0.0
#addin nuget:?package=Cogito.Core&version=4.0.0
#tool nuget:?package=Cogito.Core&version=4.0.0
Cogito.Core
The base utility library the rest of the Cogito family is built on: extension methods and small types that fill gaps in the BCL.
Why
Every codebase accumulates the same handful of helpers — a null-safe EmptyIfNull, an async lock, a
dictionary that creates missing entries, reflection helpers that walk property paths. This is that
set, written once and shared, rather than copied into each project.
Install
dotnet add package Cogito.Core
What's in it
LINQ and collections — EmptyIfNull, Expand, AnyAsync / AllAsync,
Combinatorials, DemandDictionary (a dictionary that produces a value on first access).
Async — AsyncLock and AsyncManualResetEvent, for coordination in code that cannot block.
Reflection — GetPropertyOrField, GetPropertyOrFieldFromPath, GetAssignableTypes,
GetTargetMemberInfo, and assembly-name helpers.
Text and bytes — byte-array helpers, media-type resolution.
.NET Framework only — members .NET has and .NET Framework lacks, named and shaped as in .NET and
placed in the matching Cogito namespace: Cogito.Numerics.BitOperations.LeadingZeroCount and
Cogito.Collections.Generic.CollectionExtensions.GetValueOrDefault. Import both, for example
System.Numerics and Cogito.Numerics, and the same call compiles on both: on .NET it binds to the
built-in member. For other APIs .NET has and .NET Framework lacks, use
Polyfill.
Files — DelayedFileSystemWatcher, which coalesces the burst of events the framework watcher
raises for a single logical change.
Cogito.Linq is the namespace most consumers want; it is in this package.
License
MIT.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- Newtonsoft.Json (>= 13.0.4)
- System.Memory (>= 4.6.3)
-
net6.0
- Microsoft.Extensions.DependencyModel (>= 8.0.2)
- Newtonsoft.Json (>= 13.0.4)
- System.CodeDom (>= 8.0.0)
NuGet packages (26)
Showing the top 5 NuGet packages that depend on Cogito.Core:
| Package | Downloads |
|---|---|
|
Cogito.Irony
Various add-on services for working with Irony. |
|
|
Cogito.ServiceFabric
Cogito extensions to the Microsoft Service Fabric core libraries. |
|
|
Cogito.Extensions.Configuration.Autofac
Extensions for Microsoft.Extensions.Configuration. |
|
|
Cogito.Web.UI
Extensions for System.Web.UI. |
|
|
Cogito.Web.Razor
Basic Razor support library |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0 | 123 | 10/15/2026 |
| 3.1.37 | 1,279 | 9/14/2026 |
| 3.1.36 | 76,280 | 11/30/2020 |
| 3.1.35 | 8,884 | 11/16/2020 |
| 3.1.34 | 2,045 | 11/16/2020 |
| 3.1.30 | 1,146 | 11/15/2020 |
| 3.1.29 | 3,902 | 11/11/2020 |
| 3.1.27 | 1,014 | 11/11/2020 |
| 3.1.26 | 1,061 | 11/11/2020 |
| 3.1.24 | 1,066 | 11/11/2020 |
| 3.1.23 | 1,264 | 11/11/2020 |
| 3.1.20 | 1,191 | 11/11/2020 |
| 3.1.18 | 36,194 | 8/7/2020 |
| 3.1.16 | 1,088 | 8/7/2020 |
| 3.1.13 | 54,532 | 2/25/2020 |
| 3.1.10 | 1,149 | 2/25/2020 |
| 3.1.8 | 1,120 | 2/25/2020 |
| 3.1.7 | 1,221 | 2/25/2020 |
| 3.1.6 | 1,217 | 2/25/2020 |
| 3.0.11 | 6,421 | 2/7/2020 |