Releases: TheFellow/ValueTypes
Releases · TheFellow/ValueTypes
v1.2.1
A couple of nice updates in this one:
- Added a new
AsValue()
extension method on objects implementingIEquatable<T>
- This makes it simple to fold in existing types which implement IEquatable, like
System.Drawing.Color
, for example.
- This makes it simple to fold in existing types which implement IEquatable, like
- Now with the
AsValue
extension this works seamlessly with new C# 9 record types.- This goes both ways! Both a
record
exposing aValue
and aValue
exposing arecord
are equal!
- This goes both ways! Both a
- Cleaned up the root namespace a bit so that the specific derivative types are not there to clutter the namespace.
v1.1.0
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!