Install-Package StringlyTyped.ValueObjects -Version 1.0.4
dotnet add package StringlyTyped.ValueObjects --version 1.0.4
<PackageReference Include="StringlyTyped.ValueObjects" Version="1.0.4" />
paket add StringlyTyped.ValueObjects --version 1.0.4
#r "nuget: StringlyTyped.ValueObjects, 1.0.4"
// Install StringlyTyped.ValueObjects as a Cake Addin #addin nuget:?package=StringlyTyped.ValueObjects&version=1.0.4 // Install StringlyTyped.ValueObjects as a Cake Tool #tool nuget:?package=StringlyTyped.ValueObjects&version=1.0.4
This package contains a very simple implementation of a ValueObject in .NET.
A ValueObject is a strongly typed (strongly, not stringly) domain object that is immutable.
Instead of `int customerId = 42;` we have `var customerId = CustomerId.From(42);`
Validation is in just one place. You can't introduce bad objects into your domain, therefore you can assume that in your domain every ValueObject is valid. Handy.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.