ValeraT1982 / ObjectsComparer

C# Framework provides mechanism to compare complex objects, allows to override comparison rules for specific properties and types.
MIT License
352 stars 86 forks source link

Compare items in two collections regardless of the fact count of their items differ. #30

Closed reponemec closed 3 years ago

reponemec commented 3 years ago

Compare items in two collections regardless of the fact count of their items differ.

ValeraT1982 commented 3 years ago

Thanks for the pool request.

It may be a good additional feature to the framework.

  1. It should be optional and disabled by default. Add property CompareCollectionItemsIfNumberOfElementsNotEqual to ComparisonSettings . False by default.
  2. Use this property in EnumerablesComparer~1.cs
  3. Do the same in EnumerablesComparer.cs
reponemec commented 3 years ago

OK. I believe I am finishing a better solution. I will send a quite new pull request.