StringlyTyped VS ValueOf

Compare StringlyTyped vs ValueOf and see what are their differences.

StringlyTyped

A cure for StringlyTyped software and PrimitiveObsession (by SteveDunn)

ValueOf

Deal with Primitive Obsession - define ValueObjects in a single line (of C#). (by mcintyre321)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
StringlyTyped ValueOf
1 9
6 833
- -
0.0 0.0
about 2 years ago about 1 year ago
C# C#
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

StringlyTyped

Posts with mentions or reviews of StringlyTyped. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-07-17.
  • Primitive Obsession
    3 projects | /r/dotnet | 17 Jul 2021
    Did you serialsation look anything like mine? I'd be keen to hear if mine suffers from performance issues (I've yet to benchmark it, but it isn't doing anything too fancy): https://github.com/SteveDunn/StringlyTyped/blob/main/src/StringlyTyped/ValueObjectConverterFactory.cs

ValueOf

Posts with mentions or reviews of ValueOf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-18.
  • Robust Design through Value Objects in C#
    2 projects | dev.to | 18 Sep 2023
    As we anticipate advancements in C#, we can still forge ahead with crafting resilient applications by utilizing the "ValueOf" package as a provisional solution. Below, we create a validated EmailAddress class leveraging the package:
  • Check out new C# 12 preview features! - .NET Blog
    1 project | /r/dotnet | 13 Apr 2023
    Probably better to use something like https://github.com/mcintyre321/ValueOf until we get a better solution (if we ever do). I agree that this is a pitfall.
  • Strong typedefs
    7 projects | /r/csharp | 10 Feb 2023
    The problem you’re describing here I think is ‘primitive obsession’, and the solution you’ve described is I think essentially a value object. This library might be useful https://github.com/mcintyre321/ValueOf
  • New Exception helpers in .NET 8
    2 projects | /r/csharp | 3 Dec 2022
    It lacks compile-time validation (though an analyzer that at least detects validation errors in the constructor should be fairly easy; more complicated flow control cases are probably hard), but at runtime, https://github.com/mcintyre321/ValueOf would let you do that.
  • The power of OneOf. Unions for C#
    3 projects | /r/csharp | 21 Feb 2022
  • Class vs Struct
    1 project | /r/csharp | 2 Jan 2022
    If you want to wrap a small number of properties in a type to avoid primitive obsession, consider using ValueOf.
  • Is there anyway to override default values of the decimal type in c#?
    1 project | /r/csharp | 6 Oct 2021
    You might be able to create a wrapper type with something like ValueOf.
  • Primitive Obsession
    3 projects | /r/dotnet | 17 Jul 2021
    I good library I've found for addressing this issue is https://github.com/mcintyre321/ValueOf

What are some alternatives?

When comparing StringlyTyped and ValueOf you can also consider the following projects:

FSharp.UMX - F# units of measure for primitive non-numeric types

OneOf - Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching

WrapperValueObject - A .NET source generator for creating simple value objects wrapping primitive types.