Jasinski.Shared
10.0.0
dotnet add package Jasinski.Shared --version 10.0.0
NuGet\Install-Package Jasinski.Shared -Version 10.0.0
<PackageReference Include="Jasinski.Shared" Version="10.0.0" />
<PackageVersion Include="Jasinski.Shared" Version="10.0.0" />
<PackageReference Include="Jasinski.Shared" />
paket add Jasinski.Shared --version 10.0.0
#r "nuget: Jasinski.Shared, 10.0.0"
#:package Jasinski.Shared@10.0.0
#addin nuget:?package=Jasinski.Shared&version=10.0.0
#tool nuget:?package=Jasinski.Shared&version=10.0.0
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 | Versions 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. |
-
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.