Example #1
0
        public ITrwDiff BuildDiffs(object oldDynValue, object newDynValue,
                                   ITrwDiffIdentityComparer identityComparer)
        {
            var context = new Context(identityComparer);

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