invio / Invio.Immutable

C# Library used to ease immutable class creation and data management
MIT License
2 stars 0 forks source link

Fix null enumerable comparison #17

Closed carusology closed 7 years ago

carusology commented 7 years ago

Background

As of #1, if a non-ISet<T> IEnumerable property is found on an ImmutableBase<T> class is found, we compare each item in the enumerables item by item to determine equality. Unfortunately, if you find two items that are null at the same index, we throw a NullReferenceException here instead of determining they are equal.

Task

Fix null/null item comparison when comparing items here.