I have a list : List<NXRoute> NXRouteList = new List<NXRoute>();
Inside this list, each "NXRoute" has a properties :
DestinationSignal
(it's a string)Path
which 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
DestinationSignal
are found==> before deleting the duplicate element, I would like to add the elements of its
Path
list to thePath
list of the other element (the one that has the sameDestinationSignal
Being new to c# programming I don't really know how to implement this