ValueOf - Easy 'One-Liner' Value Objects for c#. Get over your Primitive Obsession! NuGet Package

Declare Value Objects in one line e.g.

`class ClientRef : ValueOf<string, ClientRef> { }`), create using `ClientRef.From(someString)`
The base Type ValueOf<TValue, TThis>, provides Equals, GetHashcode.
Use ValueTuples for multi property values e.g `class Address : ValueOf<(string firstLine, string secondLine, Postcode postcode), Address> {}`.




Got any ValueOf - Easy 'One-Liner' Value Objects for c#. Get over your Primitive Obsession! Question?





Info

Version: 2.0.31
Author(s): Harry McIntyre
Last Update: Friday, March 4, 2022
.NET Fiddle: Online Example
Project Url: https://github.com/mcintyre321/ValueOf/
NuGet Url: https://www.nuget.org/packages/ValueOf


Install
Install-Package ValueOf
dotnet add package ValueOf
paket add ValueOf
ValueOf Download (Unzip the "nupkg" after downloading)

.NETStandard 1.3 net451
  • No dependencies.
netcoreapp1.1 1 package depend on this package.


Tags



STATS

must-have-score

1.6

avg-downloads-per-day

117

days-since-last-release

993