public ListableEnumerator(ILazinatorListable<T> list, bool reverse, long skip) { Started = false; Reverse = reverse; int skipAdjusted = (int)Math.Min(skip, list.Count); Index = reverse ? list.Count - skipAdjusted : skipAdjusted - 1; List = list; }
private void LazinateUnderlyingList() { if (LazinatorMemoryStorage.Length == 0) { _UnderlyingList = null; } else { LazinatorMemory childData = GetChildSlice(LazinatorMemoryStorage, _UnderlyingList_ByteIndex, _UnderlyingList_ByteLength, null); _UnderlyingList = DeserializationFactory.Instance.CreateBasedOnType <ILazinatorListable <T> >(childData, this); } _UnderlyingList_Accessed = true; }
public LazinatorStack(ILazinatorListable <T> underlyingList) { UnderlyingList = underlyingList; }