Codespirals.Base.Shared 1.1.1.26110

dotnet add package Codespirals.Base.Shared --version 1.1.1.26110
                    
NuGet\Install-Package Codespirals.Base.Shared -Version 1.1.1.26110
                    
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="Codespirals.Base.Shared" Version="1.1.1.26110" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Codespirals.Base.Shared" Version="1.1.1.26110" />
                    
Directory.Packages.props
<PackageReference Include="Codespirals.Base.Shared" />
                    
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 Codespirals.Base.Shared --version 1.1.1.26110
                    
#r "nuget: Codespirals.Base.Shared, 1.1.1.26110"
                    
#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 Codespirals.Base.Shared@1.1.1.26110
                    
#: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=Codespirals.Base.Shared&version=1.1.1.26110
                    
Install as a Cake Addin
#tool nuget:?package=Codespirals.Base.Shared&version=1.1.1.26110
                    
Install as a Cake Tool

Codespirals.Base

This package contains a set of interfaces, classes and helper functions at the basis of all Codespirals solutions and projects.

Main items

Identifiable

The IIdentifiable interface makes sure that identifiable items (basically any object) all have a common reference point, eliminating all guess work as to what the identifier is called on any given object.

interface IIdentifiable
{
    string Id { get; }
}

Result Pattern

This library provides mostly guiding interfaces, however for the Result pattern we have the IResult interface (and variations) as well as a Result class for a basic implementation of the former. This should be enough for most projects, though one can always just build their own class using the interfaces.

interface IResult<TErrorCode>
{
    bool Success { get; }
    TErrorCode? ErrorCode { get; }
    string Error { get; }
}

Selectables

The ISelectableBase and the IIsEnum<TSelf> interfaces are made to provide a basis for quick, easy and most importantly unified, custom enums.

interface ISelectableBase
{
    string Id { get; }
    string Name { get; }
    string Description { get; }
}

Filtering

The IFilterParameters and ISearchParameters interfaces enforce clear parameters to be used to filter a list by, as well as enable pagination (with IPagination). Here too the library provides a basic implementation with the FilterParameters / SearchParameters classes, as these are enough for most use cases.

interface IFilterParameters
{
    int Page { get; }
    int Limit { get; }
    string Sort { get; }
    bool Ascending { get; }
}
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.1.1.26110 98 5/7/2026
1.1.0.26108 129 4/20/2026