Siva V

Siva V

  • NA
  • 118
  • 6.5k

Compare List<Dictionary>

Apr 23 2019 3:51 AM
Hello Team,
 
I have different list objects with data & need to extract data from those 2 lists.
 
List<Dictionary<string, Object>   obj1;           Before changes
List<Dictionary<string, Object>   obj2;           After changes
 
1. need to retrieve all keys from this list?
 
2. How can i compare & extract difference from these 2lists. 
 
 scenario is below & need to findout all the operations
obj1 :      1        AAA         - Deleted
               2        BBB        - Data modified to CCC for this key
 
obj2        2        CCC 
               3        DDD       - New record added
 
 

Answers (1)