Skip to content

Releases: TheFellow/ValueTypes

v1.2.1

14 Apr 22:58
Compare
Choose a tag to compare

A couple of nice updates in this one:

  • Added a new AsValue() extension method on objects implementing IEquatable<T>
    • This makes it simple to fold in existing types which implement IEquatable, like System.Drawing.Color, for example.
  • Now with the AsValue extension this works seamlessly with new C# 9 record types.
    • This goes both ways! Both a record exposing a Value and a Value exposing a record are equal!
  • Cleaned up the root namespace a bit so that the specific derivative types are not there to clutter the namespace.

v1.1.0

18 Dec 00:07
Compare
Choose a tag to compare

This minor version bump adds some very valuable new features that come into play if your Value objects start to get larger and are composed of collections of other Value objects.

There are two new extension methods AsValues which behaves like a Yield for the entire sequence, and AsGroup which behaves like a Group for the entire sequence.

Take a look at the ReadMe for this version, examples and discussion are there; or, download the code and peruse the tests yourself!