c# - Merging lists of dictionaries -


suppose have lists of dictionaries ld1 , ld2. both have dictionary objects in common. suppose dictionary object "a" in both lists. want merge list of dictionaries such same object in both lists should come once in merged list.

linq's .union should work nicely:

onelist.union(twolist) 

if need list, call tolist() on result.


Comments

Popular posts from this blog

Glib GIOChannel -

android - change the return key -

All overlapping substrings matching a java regex -