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

13 lines
527 B

using System;
namespace MemoryPools.Collections.Linq
{
public static partial class PoolingEnumerable
{
public static IPoolingEnumerable<T> Where<T>(this IPoolingEnumerable<T> source, Func<T, bool> condition) =>
Pool<WhereExprEnumerable<T>>.Get().Init(source, condition);
public static IPoolingEnumerable<T> Where<T, TContext>(this IPoolingEnumerable<T> source, TContext context, Func<TContext, T, bool> condition) =>
Pool<WhereExprWithContextEnumerable<T, TContext>>.Get().Init(source, context, condition);
}
}

Powered by TurnKey Linux.