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

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> {}`.

Info

Version: 2.0.21
Author(s): Harry McIntyre
Last Update: Thursday, May 6, 2021
.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

84

days-since-last-release

209