Implementing ValueObject's Equality - Efficiently - Part 3

Supporting Collections

I have added support for nested collections to my Equals implementation.

You can find more information here, here, and here.

If you have a nested collection which you want to include in the Equals method, simply add the DeepCompare attribute to the property. For example:

public NestedValueObject[] Nested { get; set; }

This will do an element by element comparison of the collection.

This is also supported for the GetHashCode method.

The package is now running under the MIT license.