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

Unable to compare list ignoring the order. #14

Closed anuragnair03 closed 4 years ago

anuragnair03 commented 4 years ago

list a = {1,2,3}; list b = {3,2,1};

On comparing the above two list it gets added as a ValueMismatch difference. Is this expected. Can you please suggest any work-around for ignoring the order of list.

Thanks in advance!

ValeraT1982 commented 4 years ago

@anuragnair03, thank you for asking. This is expected behavior. You can write custom comparer for you list like in Example 4: Custom comparer for list Please let me know if you have any questions.