Jasinski.Shared 10.0.0

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

Jasinski.Shared

This is a library of classes, interfaces, extensions, and helper functions used in other Jasinski packages.

Extensions (Jasinski.Shared.Extensions namespace)

DateTime Extension Methods

  • FirstOfMonth: Returns the first day of the month for a given DateTime.

Exception Extension Methods

  • Recurse: Returns and error message constructed by recursively retrieves the inner exceptions of an exception, cleaning out extraneous messaging.

String Extension Methods

  • ToProperCase: Converts a string to proper case, capitalizing the first letter of each word.
  • AddSpaces: Takes a Proper-Cased variable name and adds a space before each capital letter. Very useful for enum values.

Helpers (Jasinski.Shared.Helpers namespace)

EnumHelper

  • GetDisplayValue: Returns the display value of an enum. Uses the [Display(Name="value")] attribute, if present; uses a string representation of the enum value (adding spaces, if specified) otherwise. Used when seeding values in the database.

  • GetItemsForDropDown: For use in dropdowns, returns a list of DisplayNameIdPair objects that correspond to the list of possible enum values.

Jasinski.Shared Namespace

EnumDbEntity

Class used to represent an enum value as a database entity.

Mapper

A light-weight mapper class that can be used to copy property values between two objects.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.
  • net10.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Jasinski.Shared:

Package Downloads
Jasinski.Model.Windows

Package Description

Jasinski.Model.Data

Package Description

Jasinski.Model.Services

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0 170 1/12/2026
1.0.0 242 5/23/2025