I would like to merge two Lists of Lists of a certain class that share the same key
Let's say that I have the class :
public class Album {
public string Name { get ; set; }
public string Genre{ get ; set; }
}
and two Lists of Lists :
public List<List<Album>> AlbumList1 ;
public List<List<Album>> AlbumList1 ;
I would like to merge the lists in AlbumList1 and AlbumList2 that have the same Key .
For example if a List is called "Genre1" and another is called "Genre1" i would like to merge those two lists to create a unique list .
How can I perform this ?