Пример #1
0
 public DiffEngine()
 {
     this._source = null;
     this._dest = null;
     this._matchList = null;
     this._stateList = null;
     this._level = DiffEngineLevel.FastImperfect;
 }
Пример #2
0
 public DiffEngine()
 {
     this._source    = null;
     this._dest      = null;
     this._matchList = null;
     this._stateList = null;
     this._level     = DiffEngineLevel.FastImperfect;
 }
Пример #3
0
        public double ProcessDiff(IDiffList source, IDiffList destination)
        {
            DateTime dt = DateTime.Now;

            this._source    = source;
            this._dest      = destination;
            this._matchList = new ArrayList();

            int dcount = this._dest.Count();
            int scount = this._source.Count();


            if ((dcount > 0) && (scount > 0))
            {
                this._stateList = new DiffStateList(dcount);
                this.ProcessRange(0, dcount - 1, 0, scount - 1);
            }

            TimeSpan ts = DateTime.Now - dt;

            return(ts.TotalSeconds);
        }
Пример #4
0
        public double ProcessDiff(IDiffList source, IDiffList destination)
        {
            DateTime dt = DateTime.Now;
            this._source = source;
            this._dest = destination;
            this._matchList = new ArrayList();

            int dcount = this._dest.Count();
            int scount = this._source.Count();

            if ((dcount > 0) && (scount > 0))
            {
                this._stateList = new DiffStateList(dcount);
                this.ProcessRange(0, dcount - 1, 0, scount - 1);
            }

            TimeSpan ts = DateTime.Now - dt;
            return ts.TotalSeconds;
        }