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/SelectMany.cs

22 lines
744 B

using System;
namespace MemoryPools.Collections.Linq
{
public static partial class PoolingEnumerable
{
public static IPoolingEnumerable<TR> SelectMany<T, TR>(
this IPoolingEnumerable<T> source,
Func<T, IPoolingEnumerable<TR>> mutator)
{
return Pool<SelectManyExprEnumerable<T, TR>>.Get().Init(source, mutator);
}
public static IPoolingEnumerable<TR> SelectMany<T, TR, TContext>(
this IPoolingEnumerable<T> source,
TContext context,
Func<T, TContext, IPoolingEnumerable<TR>> mutator)
{
return Pool<SelectManyExprWithContextEnumerable<T, TR, TContext>>.Get().Init(source, mutator, context);
}
}
}

Powered by TurnKey Linux.