LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   In-depth diff of X # of lists in C# (https://www.linuxquestions.org/questions/programming-9/in-depth-diff-of-x-of-lists-in-c-4175448565/)

ShaqDiesel 02-04-2013 09:30 AM

In-depth diff of X # of lists in C#
 
I have X # of LISTS(dynamic length) so there could be 2, 10, etc. lists.

I thought about using a set like structure but realized that while it can determine if all lists are equal, it won't tell me "list 2 has element A instead of element B, list 3 lacks element C, and list 7 has an additional element D.

Finally, the elements are objects, so I'll have to implement an Equals() function to compare 2 elements for equality. For example, the elements could be "car" objects that hold a string for manufacturer and an int for price.

Thank you.


All times are GMT -5. The time now is 02:32 AM.