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); }
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); }
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; }
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())); }