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