I'm trying to groupby all Subelement of one parent and compare with another group/list and delete the non-matching element from the hierarchy?
|AF Subelements||List/Array in C#||Header 3|
|Asset 1 - BXM||Matching - Retain||Asset 1 - BXM|
|Asset 2 - ABM||Non Matching - DELETE||Asset 2 - MYB|
|Asset 3 - YUX||Matching Retain||Asset 3 - YUX|
Please help me with C#.Net scripting to perform the above task?