public ITrwDiff BuildDiffs(object oldDynValue, object newDynValue, ITrwDiffIdentityComparer identityComparer) { var context = new Context(identityComparer); return(Diff(context, oldDynValue, newDynValue) ?? new EmptyTrwDiff()); }
public Context(ITrwDiffIdentityComparer identityComparer) { IdentityComparer = identityComparer; EqualityCache = new Dictionary <Pair <object>, bool>(); SingleComplexityCache = new Dictionary <object, int>(); PairComplexityCache = new Dictionary <Pair <object>, int>(); }