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

Info

Version: 1.0.14
Author(s): Harry McIntyre
Last Update: Tuesday, October 29, 2019
.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

24

days-since-last-release

116