예제 #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);
 }
예제 #2
0
파일: LinkedList.cs 프로젝트: erdincay/db4o
		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;
		}
예제 #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);
 }
예제 #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));
 }