return Elements[Index++];
}
+ public T GetCurrentItem()
+ {
+ return Elements[Index];
+ }
+
public T[] GetItems(int Count)
{
if (Elements.Count - Index < Count)
throw new WrappedListException("Unable to read requested amount of data.");
}
- T[] result = Elements.Skip<T>(Index).Take<T>(Count).ToArray<T>();
+ T[] result = Elements.Skip(Index).Take(Count).ToArray();
Index += Count;
return result;
}
+ public T[] GetCurrentItems(int Count)
+ {
+ if (Elements.Count - Index < Count)
+ {
+ throw new WrappedListException("Unable to read requested amount of data.");
+ }
+
+ T[] result = Elements.Skip(Index).Take(Count).ToArray();
+
+ return result;
+ }
+
public IEnumerable<T> GetEnumerableItems(int Count)
{
if (Elements.Count - Index < Count)
throw new WrappedListException("Unable to read requested amount of data.");
}
- IEnumerable<T> result = Elements.Skip<T>(Index).Take<T>(Count);
+ IEnumerable<T> result = Elements.Skip(Index).Take(Count);
Index += Count;
return result;