public DiffEngine() { this._source = (IDiffList)null; this._dest = (IDiffList)null; this._matchList = (ArrayList)null; this._stateList = (DiffStateList)null; this._level = DiffEngineLevel.FastImperfect; }
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); }