You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/MemoryPools/Collections/Linq/SkipTake.cs

15 lines
527 B

namespace MemoryPools.Collections.Linq
{
public static partial class PoolingEnumerable
{
public static IPoolingEnumerable<T> Skip<T>(this IPoolingEnumerable<T> source, int count)
{
return Pool<SkipTakeExprPoolingEnumerable<T>>.Get().Init(source, false, count);
}
public static IPoolingEnumerable<T> Take<T>(this IPoolingEnumerable<T> source, int count)
{
return Pool<SkipTakeExprPoolingEnumerable<T>>.Get().Init(source, true, count);
}
}
}

Powered by TurnKey Linux.