private static List <JToken> CompareChildKeyValues(IJEnumerable <JToken> check, IJEnumerable <JToken> childValues) { var result = new List <JToken>(); foreach (JToken item in childValues) { result = check.Where(x => !x.SequenceEqual(item)).ToList(); } return(result); }
private static List <object> CompareChildKeyValues(IJEnumerable <JToken> check, IJEnumerable <JToken> childValues) { var result = new List <object>(); foreach (JProperty item in childValues.Children()) { var t = check.Where(x => x.Path.Equals(item.Path) && !x.Children().Equals(item.Children())).ToList(); } //result = from x in childValues // from y in check // where x.Path.Equals(y.Path) && !x.Value.Equals(y.Value) //foreach (JToken item in childValues) //{ // if (check.Any(x => x.Path.Equals(item.Path) && !x.SequenceEqual(item))) // { // JProperty jProperty = new JProperty(item.Path, item); // result.Add(jProperty); // } //} return(result); }