- public class RootObject1
- {
- public Dictionary nodeHierarchy { get; set; }
- public Dictionary Parentnode { get; set; }
- }
- List
ro = new List (); - RootObject1 ro1 = new RootObject1
- {
- nodeHierarchy = new Dictionary<string, string>
- {
- { "l1", "x" },{"l2", "x" }
- }
- };
- ro.Add(ro1);
- Dictionary<string, string> di = new Dictionary<string, string>();
- di.Add("l1", "x");
- di.Add("l2", "x");
- var x = ro.Where(w => w.nodeHierarchy == di);
- // follwing is not compairing pls suggest
Loading
Rajanikant HawaldarPosted Mar 9, 2020, 4:50 AM