Beispiel #1
0
        /// <summary> method will clone the list and make a copy of the activations
        /// </summary>
        public override IActivationList cloneActivationList()
        {
            LinkedActivationList la = new LinkedActivationList();

            la.count   = count;
            la.first   = first.cloneActivation();
            la.lazy    = lazy;
            la.stratey = stratey;
            LinkedActivation current = first;
            LinkedActivation newcurr = la.first;

            while (current != null)
            {
                newcurr.Next = current.Next.cloneActivation();
                current      = current.Next;
                newcurr      = newcurr.Next;
            }
            return(la);
        }
Beispiel #2
0
 /// <summary> method will clone the list and make a copy of the activations
 /// </summary>
 public override IActivationList cloneActivationList()
 {
     LinkedActivationList la = new LinkedActivationList();
     la.count = count;
     la.first = first.cloneActivation();
     la.lazy = lazy;
     la.stratey = stratey;
     LinkedActivation current = first;
     LinkedActivation newcurr = la.first;
     while (current != null)
     {
         newcurr.Next = current.Next.cloneActivation();
         current = current.Next;
         newcurr = newcurr.Next;
     }
     return la;
 }