I have a list : List<NXRoute> NXRouteList = new List<NXRoute>();
Inside this list, each "NXRoute" has a properties :
DestinationSignal(it's a string)Pathwhich represents a list (List<Path> pathList = new List<Path>();)
I would like to compare the elements of NXRouteList according to the property DestinationSignal, so:
If two elements with the same value of
DestinationSignalare found==> before deleting the duplicate element, I would like to add the elements of its
Pathlist to thePathlist of the other element (the one that has the sameDestinationSignal
Being new to c# programming I don't really know how to implement this