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.