Ejemplo n.º 1
0
 public virtual Db4objects.Db4o.Tests.Common.TA.LinkedList NextN(int depth)
 {
     Db4objects.Db4o.Tests.Common.TA.LinkedList node = this;
     for (int i = 0; i < depth; ++i)
     {
         node = node.next;
     }
     return(node);
 }
Ejemplo n.º 2
0
		public static Db4objects.Db4o.Tests.Common.TA.LinkedList NewList(int depth)
		{
			if (depth == 0)
			{
				return null;
			}
			Db4objects.Db4o.Tests.Common.TA.LinkedList head = new Db4objects.Db4o.Tests.Common.TA.LinkedList
				(depth);
			head.next = NewList(depth - 1);
			return head;
		}
Ejemplo n.º 3
0
 public static Db4objects.Db4o.Tests.Common.TA.LinkedList NewList(int depth)
 {
     if (depth == 0)
     {
         return(null);
     }
     Db4objects.Db4o.Tests.Common.TA.LinkedList head = new Db4objects.Db4o.Tests.Common.TA.LinkedList
                                                           (depth);
     head.next = NewList(depth - 1);
     return(head);
 }
Ejemplo n.º 4
0
 public override bool Equals(object other)
 {
     Db4objects.Db4o.Tests.Common.TA.LinkedList otherList = (Db4objects.Db4o.Tests.Common.TA.LinkedList
                                                             )other;
     if (value != otherList.value)
     {
         return(false);
     }
     if (next == otherList.next)
     {
         return(true);
     }
     if (otherList.next == null)
     {
         return(false);
     }
     return(next.Equals(otherList.next));
 }