Skip to main content
StringlyTyped.ValueObjects package icon

StringlyTyped.ValueObjects

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.

Total Downloads
3.1K
3,096
Published
Jul 17, 2021
Latest stable version

Install

.NET CLI
dotnet add package StringlyTyped.ValueObjects --version 1.0.3
Package Manager Console
Install-Package StringlyTyped.ValueObjects -Version 1.0.3
PackageReference
<PackageReference Include="StringlyTyped.ValueObjects" Version="1.0.3" />

Frameworks

.NETFramework4.6.1 net5.0 .NETStandard2.0 .NETStandard2.1

Dependencies

System.Text.Json
.NETFramework4.6.1
[5.0.2, )
[5.0.2, )
System.Text.Json
.NETStandard2.0
[5.0.2, )
System.Text.Json
.NETStandard2.1
[5.0.2, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.