GeneralContainers 2.2.0

Some containers and base classes for general C# development

Install-Package GeneralContainers -Version 2.2.0
dotnet add package GeneralContainers --version 2.2.0
<PackageReference Include="GeneralContainers" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GeneralContainers --version 2.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

CsharpContainers

Some containers and base classes for general C# development

  • PartiallyOrdered is an Abstract class that handles sorting support, equality and inequality overrides from a single comparison method.
  • Result is a container for passing the value of computations that might fail (such as calls to IO or external services)
  • PartialResult is a container for passing the value of computations that might fail for multiple reasons or return partially complete results
  • ValidationOutcome is a container for passing the value of checks that might fail in an informative way.
  • DisposingContainer is a disposable list, which calls Dispose on contained items when they are removed, replaced, or the list itself is disposed.
  • Map is a dictionary wrapper that can generate entries when requested. This helps when working with loosely structured data

Both Result and 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.

CsharpContainers

Some containers and base classes for general C# development

  • PartiallyOrdered is an Abstract class that handles sorting support, equality and inequality overrides from a single comparison method.
  • Result is a container for passing the value of computations that might fail (such as calls to IO or external services)
  • PartialResult is a container for passing the value of computations that might fail for multiple reasons or return partially complete results
  • ValidationOutcome is a container for passing the value of checks that might fail in an informative way.
  • DisposingContainer is a disposable list, which calls Dispose on contained items when they are removed, replaced, or the list itself is disposed.
  • Map is a dictionary wrapper that can generate entries when requested. This helps when working with loosely structured data

Both Result and 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.

Release Notes

PartialResult container

Dependencies

This package has no dependencies.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.2.0 68 5/20/2020
2.1.0 54 5/12/2020
2.0.1 305 12/19/2018
2.0.0 175 12/19/2018
1.3.0 611 4/18/2018
1.2.0 502 3/23/2018
1.1.0 512 2/15/2018
1.0.0 517 1/18/2018