Esempio n. 1
0
 public DiffEngine()
 {
     this._source    = (IDiffList)null;
     this._dest      = (IDiffList)null;
     this._matchList = (ArrayList)null;
     this._stateList = (DiffStateList)null;
     this._level     = DiffEngineLevel.FastImperfect;
 }
Esempio n. 2
0
        public double ProcessDiff(IDiffList source, IDiffList destination)
        {
            DateTime now = DateTime.Now;

            this._source    = source;
            this._dest      = destination;
            this._matchList = new ArrayList();
            int destCount = this._dest.Count();
            int num       = this._source.Count();

            if (destCount > 0 && num > 0)
            {
                this._stateList = new DiffStateList(destCount);
                this.ProcessRange(0, destCount - 1, 0, num - 1);
            }
            return((DateTime.Now - now).TotalSeconds);
        }