public bool MoveNext() { if (this.current == null && this.init.Next != null) { this.current = this.init; } else if (this.current?.Next != null && this.current.Next != Empty) { this.current = this.current.Next; } else { return(false); } return(true); }
public void Reset() => this.current = this.init;
public OrderedLinkedStoreEnumerator(OrderedLinkedStore <TValue> init) { this.init = init; }
private OrderedLinkedStore <TValue> SelfCopy(OrderedLinkedStore <TValue> nextNode) => new OrderedLinkedStore <TValue>(this.Value, nextNode);
private OrderedLinkedStore(TValue value, OrderedLinkedStore <TValue> next) { this.Value = value; this.Next = next; this.IsEmpty = false; }
private OrderedLinkedStore(TValue value, OrderedLinkedStore <TValue> next) { this.value = value; this.next = next; }