Install-Package GeneralContainers -Version 2.2.0
dotnet add package GeneralContainers --version 2.2.0
<PackageReference Include="GeneralContainers" Version="2.2.0" />
paket add GeneralContainers --version 2.2.0
#r "nuget: GeneralContainers, 2.2.0"
// Install GeneralContainers as a Cake Addin #addin nuget:?package=GeneralContainers&version=2.2.0 // Install GeneralContainers as a Cake Tool #tool nuget:?package=GeneralContainers&version=2.2.0
Some containers and base classes for general C# development
PartiallyOrderedis an Abstract class that handles sorting support, equality and inequality overrides from a single comparison method.
Resultis a container for passing the value of computations that might fail (such as calls to IO or external services)
PartialResultis a container for passing the value of computations that might fail for multiple reasons or return partially complete results
ValidationOutcomeis a container for passing the value of checks that might fail in an informative way.
DisposingContaineris a disposable list, which calls
Disposeon contained items when they are removed, replaced, or the list itself is disposed.
Mapis a dictionary wrapper that can generate entries when requested. This helps when working with loosely structured data
ValidationOutcome can be treated as booleans or their contained types to keep code clean.
There are some helper types for working with these:
Nothing- Represents an empty type in containers. All nothings are created equal.
This package has no dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.